Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Do I Teleport A Player To Another Game After Death?

Is Like from camping, If a player dies, he will teleport to another game and that game is a lobby, please help me know the script, I'm not good at scripting, so I need help, please, Advanced Thanks!

1 answer

✓ Accepted answer

You can use the Humanoid.Died event and the TeleportService

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChild("Humanoid")

local placeid  = 0 -- enter your gameid here

humanoid.Died:Connect(function()
	 game:GetService("TeleportService"):Teleport(placeid, player)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.