Hello,
I was trying this for over an hour, tried youtube vids, the wiki, and google. Im trying to make a GUI button that kills you when you click it. I have the gui and everything, but I want to know how the script would go.
This is what i was trying:
Button.MouseButton1Down:connect function()
game.Player.Humanoid.Health = 0
end
Im not a great scripter, still learning, but just asking for a little help with this certain script.

3 comments
When I try executing the script, it gives me this error in the output: 00:48:01.520 - Players.Player.PlayerGui.ScreenGui.Box.Sucide.LocalScript:15: ')' expected (to close '(' at line 6) near ''
oops sorry, forgot a parenthesis on the last end, the code should work now
It works! Thank you very much :)