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

respawn on touch.

Asked by 11 years ago

I I'm trying to make a respawn on touch script' help?

1 answer

Log in to vote
3
Answered by
Kratos232 105
11 years ago

OK, here's the script. Put this script inside the respawn-on-touch brick.

Script:

1script.Parent.Touched:connect(function(Hit) -- Activates if Touched
2Player = Game.Players:GetPlayerFromCharacter(Hit.Parent)  -- Checks if what touched has a player.
3if Player then -- Checks the Player
4Player:LoadCharacter() -- Loads if it is a Player
5end -- Ends the "if" statement.
6end) -- Ends the function.

Well, bye. Enjoy your brick.

  • Kratos232
Ad

Answer this question