while wait(math.random(5)) do
script.Parent:Play()
end
OK.
This is my script I have in my game. Basically what it is suppose to do is randomly play thunder in my game. I just don't want the thunder to be at the exact same time each time so I tried doing math.random and I got everything figured out, but how does the parentheses work?
I assumed if you put a number in the parentheses it'll choose a random number for 1-whatever number you chose. In my case I have five so thunder would play 1-5 seconds each time , right?

1 comment
His will work. But this one won't.