I wasn't sure how to phrase this question, basically I made a button to add 1 to "num", but whenever I try to script after a while true do loop it wont work.
a = 0
adding = false
b = 0
adding2 = false
button.MouseButton1Click:connect(function()
adding = true
end)
button2.MouseButton1Click:connect(function()
adding2 = true
end)
while true do
wait(0.5)
a = a + 1
end
while true do
wait(0.5)
b = b + 1
end
The second while true do loop wont ever run, and I was going to use runservice stepped but I can't use wait() there. I tried combining the loops into one but it was like adding them slower and differently, I'm not sure if I did something wrong. Thanks!

1 comment
a loop goes on forever and until the loop stopped, you can't run the next lines of code