Help with error - Attempted to teleport to a place that is restricted

Hello! How is it going? I am currently getting this error:

Here is the server side script:

local Gamemodes = {TimeTrials = 7002658064, Tutorial = 7126538227}

ReplicatedStorage.TeleportToGame.OnServerEvent:Connect(function(Player, Gamemode, Map)
	local ReserveServerAccessCode = TeleportService:ReserveServer(Gamemodes[Gamemode])
	TeleportService:TeleportToPrivateServer(Gamemodes[Gamemode], ReserveServerAccessCode, {Player}, nil, Map)

And here is the Client Sided:

ReplicatedStorage.TeleportToGame:FireServer("TimeTrials", MapChosen)

I don’t know what is happening. If you can help, please let me know. Thanks! WE

It looks like the game that you’re trying to teleport to costs robux.

1 Like

Well it is a place within the game…

Its also weird because the Tutorial teleports just fine.

try to see if the place is in private

I am the owner of the place… It should be public to me…

Did you enter the place id correctly?

Yup! I copied and pasted it from the Asset Manager.

I don’t know why, but turning on HTTP requests seemed to fix this…