it would also work to have the code teleport me when i touch a certain object. i just think it would be cleaner if it was upon death

local service = game:GetService("TeleportService") 
local place = (the game the player will be sent to)
local plr = game.Players.goulstem

service:Teleport(place,plr)

6 comments

0

Please make an attempt before requesting a script

0

i tried: 1: local service = game:GetService ("TeleportService) 2:local plce = (the game the player will be sent to) 3: local plr = game.player.goulstem; 5: service:Teleport(place,plr)

0

but that obviously didn't work because that has nothing to do with player death

0

well, you can use a Humanoid.Died event to detect when a player dies

0

apart from that, line 2, you have to replace with the placeid, and line 3, you actually have to get a player in your game, as Goulstem isnt always going to be in your game

0

it is, the id is 3703255527 thanks for the help.