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

Intervals to call function?

Hi, I'm new to all this, first time learning to code so sorry if the answer is obvious.

Is it possible to call a function for every 300 seconds or something like that?

1 answer

✓ Accepted answer

Use a loop.

do something like:

while true do
wait(300)
-- call function
end

Good luck!

5 comments

0

you shouldn't use a while wait do loop. Do while true do wait(300)

0

green is correct. @titaneagle do you even know WHY wait() as a condition works?

3

ok

3

thanks

2

ty

This discussion is preserved as it was. New answers, comments, and votes are closed.