If possible, when dying be teleported to a different world Thank you
COMMUNITY QUESTION
How do I teleport a player when he dies ?
1 answer
Hi Eds456oficial,
The humanoid has a .Died event that fires upon the death of it. I would just connect that to the TeleportService and make that work. Something along these lines would probably work:
local players = game:GetService("Players"); -- The players service
local teleport = game:GetService("TeleportService"); -- The teleport service
local id = 226039913; -- The id of the place, can be found in the url when you're on the page of the game.
players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid"); -- The humanoid of the character.
hum.Died:Connect(function()
teleport:Teleport(226039913, plr);
end)
end)
end)
##Well, I hope I helped and have a nice day.
Thanks,
Best regards,
~~ KingLoneCat
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
Thx man
np
Hey you want to play the game with me? I'll pay you 35 robux okay?
What game?
FortNite
Sorry, I am not such a big fan of Fortnite, especially the one on Roblox.