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

My coroutine doesn't yield? here's some more words because evaera's system is weak

Asked by 6 years ago
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?

0
So Studio is crashing? Vezious 310 — 6y
0
lol wth? mewant_taco 17 — 5y
0
evaera's system is weak like the administration raid6n 2196 — 1y

Answer this question