So I'm trying to make my localscript loop to be able to update a players points every few 10 seconds. Is it possible and if so, what do you use?
✓ ANSWER ACCEPTED
Can you loop a localscript every 10 seconds?
2 answers
✓ Accepted answer
while true do
wait(10)
--your code
end
2 comments
1
Easy way to get rep
1
tru
You can use this:
while wait(10) do
--your code
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Use while true do, and then do wait(10) and write your script in after the wait, and the end. It means it will wait ten seconds, and will do the script and loop. While true do is an infinite loop.