Script wont let the player rejoin! [HELP]

Hello,

I am making a script and its not letting the player
rejoin !

all it says is this.

This is a local script, here is the script

local Player = game.Players.LocalPlayer
local placeId = game.PlaceId

game:GetService("TeleportService"):Teleport(placeId, Player)

Is this a bug or am I doing something wrong. Can somebody help?

Thank you!

I’m pretty sure it’s because you need to let the player load in before teleporting them

this script only functions after the player dies

Do you have third party teleportation enabled?

yeah? Am i supposed to turn that off?

I don’t think you can teleport between places in Studio. You need to publish the game first

I think he is right and no, don’t turn it off

it is! ive been playing the game on roblox not studio.