Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can you loop a localscript every 10 seconds?

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?

1 comment

0

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.

2 answers

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.