Why does this anonymous coroutine does nothing? How do you start this coroutine?
while true do
coroutine.wrap(function()
for i = 1, player.leaderstats.Score.Value do
--Does something
wait(0.03125)
end
coroutine.yield()
end)
end
Why does this anonymous coroutine does nothing? How do you start this coroutine?
while true do
coroutine.wrap(function()
for i = 1, player.leaderstats.Score.Value do
--Does something
wait(0.03125)
end
coroutine.yield()
end)
end
while true do
local s = coroutine.wrap(function()
for i = 1, player.leaderstats.Score.Value do
--Does something
wait(0.03125)
end
coroutine.yield()
end)
s()
end
This discussion is preserved as it was. New answers, comments, and votes are closed.