pcall will infinitely yield when using coroutines. See code below to repro. Everything prints fine, including Yield finished, but Finished yield test will never get printed. This just started happening recently.
local function Yield()
print("Starting yield function")
local Thread = coroutine.running()
delay(1, function()
print("Resuming")
coroutine.resume(Thread)
end)
print("Yielding")
coroutine.yield()
print("Yield finished")
end
print("Starting yield test")
pcall(Yield)
print("Finished yeild test")
I am guessing that the pcall failed at such a level that the print did not get processed.
Perhaps code the pcall to get its results and only do the print if the pcall was successful.