My game has a serious problem where people are repeatedly being restricted from teleporting. Although this isn’t affecting everyone it is still an issue to the people that it affects.
This only happens sometimes to the player and can rejoin a few times to fix it. This is really annoying and could be possibly making me lose players.
server script:
local reservedServerCode = teleportService:ReserveServer(gameId)
local teleportOptions = Instance.new("TeleportOptions")
teleportOptions.ReservedServerAccessCode = reservedServerCode
teleportOptions:SetTeleportData(getLength(teleporting))
if playersTp[1] ~= nil then
pcall(function()
teleportService:TeleportAsync(gameId,playersTp,teleportOptions)
end)
end
any help is greatly appreciated.