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:
01 | local Succes,Error = xpcall ( function () |
02 | local _,Error 3 = pcall ( function () |
03 | local ReservedServer = TeleportService:ReserveServer( tonumber (Level.GameNumbers.Value)) |
04 | TeleportService:TeleportToPrivateServer( tonumber (Level.GameNumbers.Value),ReservedServer, { player } ) |
06 | if typeof(Error 3 ) = = 'string' then error (Error 3 ) end |
08 | if Error 2 = = 'HTTP 403 (Forbidden)' then |
09 | return "Cannot Teleport in Roblox Studio" |
13 | if not Succes then warn(Error) end |