Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Will anybody help me with this GUI script?[Solved]

Asked by 10 years ago
button = script.Parent

function onClicked(GUI)
    window:remove()
end
script.Parent.MouseButton1Down:connect(function()
    game.Players.LocalPlayer.Character:TakeDamage(100)

end)

The GUI is a reset button. It's supposed to make you take 100 damage when you click it (Obviously; that's what a reset button does). Nothing happens when I click it.

I figured out how to make a button teleport you, but I already made the decal with the word "Reset" on it. :P

0
Any errors? My guess is that you need Character.Humanoid rather than just the character. GoldenPhysics 474 — 10y
0
That did not work. I guess I'll just make another image with "Teleport" on it. Lightdrago 95 — 10y
0
Actually, I retried that and it worked. Thank you! Lightdrago 95 — 10y
0
You could do Character:BreakJoints as well. Tempestatem 884 — 10y

Answer this question