What do you want to achieve?
i want to reset a while loop instead of making a new one. The new one breaks my counter.
What is the issue? Include screenshots / videos if possible!
My while loop is called with a function. The function is called multiple times but the loop doesnt reset. In the code below it makes another loop when the function is called. How can i reset the loop instead of making a new one?
TouchEvent.OnClientEvent:Connect(function(reset) Player.leaderstats.CurrentTime.Value = 0 while true do Player.leaderstats.CurrentTime.Value += 1 Player.PlayerGui.LeaderboardGui.ScrollingFrame:WaitForChild("LeaderboardTemplate").CurrentTime.Text = Player.leaderstats.CurrentTime.Value wait(1) end end)
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried using
continuebut I cant figure out how to use those in my situation.
Please note that this is my first post on the the devforum.