Does this create infinite coroutines since it is in a while true do loop? If it does, how do you stop the coroutines without putting any code inside the for in pairs do. Thanks!
while true do
for _, player in pairs(game.Players:GetPlayers()) do
player.PlayerGui.LocalScript.Disabled = true
local newThread = coroutine.wrap(function()
for i = 1, player.leaderstats.Score.Value do
--Gives experience points
end
wait(0.03125)
end
end)
newThread()
--No waits allowed
end
--Does stuff and waits
end

3 comments
What exactly are you trying to do?
You should use
spawninstead ofcoroutine.wraphereTo stop it: coroutine.yield