I just started making an obby and I have been liking the obbys where you teleport back to the checkpoint soon as you die. In my obby when you die you just stay there for seconds dead until you go back to the checkpoint. If you know the answer than please paste the script and tell me what i should put the script into.
✓ ANSWER ACCEPTED
OBBY DEATH HELP: HOW DO I MAKE THEM TELEPORT?
2 answers
✓ Accepted answer
Try putting a ServerScript into a Kill Part and write this:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:WaitForChild('Humanoid') then --checks if the player is actually a player
local player = game.Players:GetPlayerFromCharacter(hit.Parent) --getting the player
player:WaitForChild('Humanoid').Health = 0
end
end)
Then place a bunch of teams according to their respective stages and turn on SpawnLocation.AllowTeamChangeOnTouch so that they have checkpoints.
go here for the ROBLOX checkpoint. This is made by ROBLOX.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
This is not a request site.
https://scriptinghelpers.org/help/community-guidelines