local RunScript = coroutine.wrap(function(PlayerMovment)
for i , Player in pairs(game.Players:GetChildren())do
if(Player:FindFirstChild("PlayerGui"):FindFirstChild("Check")~=nil) then
PlayerMovment:Clone().Parent = Player:FindFirstChild("Backpack")
Player:FindFirstChild("Backpack"):FindFirstChild("PlayerMovments").Disabled = false
wait()
end
end
coroutine.yield() -- makes the in suspend mode ( this is how i can loop it )
end)
i am trying to use coroutine . i am not really expert on them . so .. i have a while loop with a lot of functions a specific function i use call the coroutine and use it and then keep going on to the next function .
after the function finish the while loop start again and when it get to the coroutine i get an error on the output that the coroutine is dead. now i read the article and i do know what that means but i tried to yield it but it didnt work .
can someone show me what did i do wrong ? it will really help me . Thanks

1 comment
error?