m.InvokeAsync = function(self, plr, rType, ...) local remote, done = getRemote("Client" .. rType .. "RemoteFunction") local info = coroutine.resume(invokeRemote, remote, plr, ...) repeat wait() if not plr.Name then return end until done return info end invokeRemote = coroutine.create(function(remote, plr, ...) while true do local info = remote:InvokeClient(plr, ...) coroutine.yield(info) end end)
for some reason my coroutine isn't yielding? D; Anyone know the reason and possibly a solution to what I'm doing?