So, I have been working on an elimination mode for a FPS game of mine. I made a script to teleport to a different game when you die. When I tried the game on the website, I did not teleport to the specified game. Here is the script I used:
game.Players.LocalPlayer.Character:WaitForChild('Humanoid').Died:Connect(function()
wait(0.1)
game.GetService('TeleportService'):Teleport(4833723678, game.Players.LocalPlayer)
end)
Will anyone help with this issue?

2 comments
Is this a localscript? Also was there anything in the output?
yes, it was a localscript. it was originally a part of a death screen script, so i kept it in startergui. do you know where i should put the script?