Poll

print((CFrame.Angles(math.pi, 0, 0) * CFrame.new(0, 1, 0)).Y)

1
-1

Author Topic: [THREAD MOVED]  (Read 515090 times)

guys
how do i make players spawn with more health

guys
how do i make players spawn with more health

game.Players:OnPlayerAdded:connect(function(player)
player:OnCharacterAdded:connect(function(char)
char:WaitForChild("Humanoid").MaxHealth = 125
char.Humanoid.Health = 125
end)
end)


Fixed a little mistake - It should work now. (See my next post)
« Last Edit: October 11, 2016, 03:09:06 PM by Marios »

local brick = script.Parent

function onTouch(part)
--This will give the player a "Challenge Over" gui, which should dissapear on promt.
instance.copy("Gameover")
end

someone helped with this script on rblx forums but didn't pay attention to the topic
how do i change the gui's parent

local brick = script.Parent

function onTouch(part)
--This will give the player a "Challenge Over" gui, which should dissapear on promt.
instance.copy("Gameover")
end

someone helped with this script on rblx forums but didn't pay attention to the topic
how do i change the gui's parent

Instance.copy isn't even a thing (Unless it was added in 2016, where I didn't really check out anything new on Roblox coding)
You tried to Torquescript on Lua.

Since a lot of scripting help as been approaching this topic, I might as well help with this one too.

--So let's get underway!
--Unneeded variable removed.
script.Parent.Touched:connect(function(part) --This is how you do stuff upon an event.
--Now a function executes with variable "part" being the part that came into contact with the brick.
--So let's do the following checks:
--Is the part touched a literal part of a Robloxian, and are they controlled by a player?
--You may remove the player check if you aren't going to use NPCs
if part.Parent:FindFirstChild("Humanoid") and game.Players:GetPlayerFromCharacter(part.Parent) then
local gameover = game.ServerStorage.GameOverGu i:Clone() --This creates a copy of the GUI ready for us to transfer to the player (and enable scripts if necessary)
gameover.Parent = game.Players:GetPlayerFromCharacter(part.Parent).PlayerGui --As far as I know, you cannot create variables within methods like in Torquescript
--gameover.Frame.Script.Disabled = false (Use this if you have some script along with the GUI
end) --End a function called by an event like this, since it closes the parentheses


P.S. TableSalt, I made a mistake over at the script I gave you, I'm going to fix it right now.

aaaaa
Thanks, I'm not good at scripting, so the official wiki isn't reliable, we all agree

game.Players:OnPlayerAdded:connect(function(player)
player:OnCharacterAdded:connect(function(char)
char:WaitForChild("Humanoid").MaxHealth = 125
char.Humanoid.Health = 125
end)
end)


Fixed a little mistake - It should work now. (See my next post)
yes thank yes

Thanks, I'm not good at scripting, so the official wiki isn't reliable, we all agree

I think you just misintepreted it.

Also, do you even know how people get to edit on the Wiki? They have to pass through (digital) bureaucracy and prove they know their Roblox. The official wiki is very reliable.

But either way, you're welcome! You can always contact me for more coding help whenever you want - username's Marios2 in Roblox.

yes thank yes

You're welcome, salty senpai! You can also contact me if you need me again.

yes thank yes

No need for scripts, you can simply insert a Humanoid into game.StarterPlayer, rename it to "StarterHumanoid" then set the health on that to 125.

Yup, that's a thing.

I couldn't hear your scripting over my "Dragon Drop" of death.

No need for scripts, you can simply insert a Humanoid into game.StarterPlayer, rename it to "StarterHumanoid" then set the health on that to 125.

Yup, that's a thing.

Oh, looks useful.

I couldn't hear your scripting over my "Dragon Drop" of death.

OBJECTION!

WHILE TRUE DO END!

so can somebody please make dark souls in roblox

made voxel guns, but they actually use part per part, making each gun desneccesarily heavy
you may take at your own risk
Voxel guns

I see alot of people complaining about ROBLOX yet they play it.

so can somebody please make dark souls in roblox



made voxel guns, but they actually use part per part, making each gun desneccesarily heavy

Why not do union on them?

I see alot of people complaining about ROBLOX yet they play it.

It's because of Phantom Forces, probably.

TBH I've actually always wanted to make a game in roblox that was some rpg but with actual combat mechanics like dark souls instead of the usual "stand in front of enemy and click until either of you is kill"

I'd also make the start fairly easy and allow people to just kinda do that with the first few enemies up until they reach a boss or something which heavily punishes for just standing in front of it and swinging.

it'd be hilarious and you could probably make a decent amount of money off of it.