Been trying to teleport players to a reserved server but it just says "Attempted to teleport to a place that is restricted.", I have no clue what im doing wrong here (This is only when attempting to join an already made server, creating one has no issues).
code for creating servers
local TeleportService = game:GetService("TeleportService")
local memoryStoreService = game:GetService("MemoryStoreService")
local infostore = memoryStoreService:GetQueue("ServerAccessIDs")
script.Parent.createserver.OnServerEvent:Connect(function(plr)
local code, privateid = TeleportService:ReserveServer(game.PlaceId)
TeleportService:TeleportToPrivateServer(game.PlaceId, code, {plr})
local info = {
[privateid] = code
}
infostore:AddAsync(info, 259200, 0) -- save it so other people can access the code
end)