Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why my xpcall yields but it should not yield?

Asked by 5 years ago
Edited 5 years ago

( Sorry for being a bad post but this is my first post)

it always warns this: 18:12:12.104 - attempt to yield across metamethod/C-call boundary

the code:

01local Succes,Error = xpcall(function()
02           local _,Error3 = pcall(function()
03           local ReservedServer = TeleportService:ReserveServer(tonumber(Level.GameNumbers.Value))
04           TeleportService:TeleportToPrivateServer(tonumber(Level.GameNumbers.Value),ReservedServer,{player})
05           end)
06            if typeof(Error3) == 'string' then error(Error3) end
07           end,function(Error2)
08                if Error2 == 'HTTP 403 (Forbidden)' then
09                return "Cannot Teleport in Roblox Studio"
10            else
11                return Error2
12            end end)
13                if not Succes then warn(Error) end

Answer this question