Hello I was trying to make a script that makes it so that way when you die it will teleport you to another place/game. Can someone please help me? Heres the script I used.
function udead(whodat, whodatplr)
whodat.Humanoid.Died:connect(function()
game:GetService("TeleportService"):Teleport(3080930751)
end)
end
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:wait()
udead(plr.Character,plr)
plr.CharacterAdded:connect(function(char)
udead(char,plr)
end)
end)

1 comment
It worked thank you so much!