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

4 comments

0

Any errors? My guess is that you need Character.Humanoid rather than just the character.

0

That did not work. I guess I'll just make another image with "Teleport" on it.

0

Actually, I retried that and it worked. Thank you!

0

You could do Character:BreakJoints as well.