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

Can I make a script wait a random amount of time?

So can I make a script wait a random amount of time? But still wait somewhere between 1 and 10 seconds? I used to know how to this but I forgot.

1 answer

wait(math.random(1, 10))

math.random() generates a random number within a specific range. In this example, it would be from 1 to 10.

wait() waits a specified number of seconds, in this case, it would be the random number generated by math.random()

1 comment

0

Thank you

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