Attempt to teleport to place that is restricted

I keep getting this error only sometimes when someone teleports to my sub place.

local ReservedServerId = teleportService:ReserveServer(gameId)

				local teleportOptions = Instance.new("TeleportOptions")
				teleportOptions.ShouldReserveServer = true
				teleportOptions:SetTeleportData(getLength(teleporting))

				if playersTp[1] ~= nil then
					pcall(function()
						game:GetService("TeleportService"):TeleportAsync(gameId,playersTp,teleportOptions)
					end)
					
				end

any reasons why or how I can fix this?

1 Like

It looks like someone else was having the same issue before, maybe you can find the solution in this post.

Hey! Could I ask what the parameter gameId returns?

gameId is just the id for my sub place

Ok. Just another question, are you testing this in studio or have you also tried the published Roblox game, because if you haven’t I would advise testing that

Its a public game, people have been reporting this issue to happen occasionally