Teleport ''Restricted'' When Game is Open?


I am trying to use this code below so that, when the player holds E, they teleport to the game ( a child of the parent game. ) - the code works fine, but I am getting a ‘‘this place is restricted’’ and it won’t teleport me. It’s quite frustrating and I could really use some assistance. Thank you.

local landteleport = script.Parent

landteleport.ProximityPrompt.Triggered:Connect(function(player)
game:GetService(“TeleportService”):Teleport(6505902385, player)
print (“Teleporting Player!”)
end)

TeleportService doesn’t work when in studio, try testing it in the actual game.

This is in the actual game - apologies, I should’ve clarified.

You may need to enable the permission under settings called but
I don’t think that will change anything due to the game you want to teleport
to is owned by you. Worth a try though.

Still didn’t do the trick, unfortunately. I had them enabled already. I haven’t run into this issue before, and man, is it annoying.

Sorry I don’t entirely know how to fix it. Never had this issue for myself.

Ah, alright. Thank you, anyway.

This is kinda hacky but try toggling the privacy setting to “Everyone” on “Who can join me?”.

Otherwise, it is most likely a temporary problem.