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?

3 comments

0

So Studio is crashing?

0

lol wth?

0

evaera's system is weak like the administration