So I couldn’t wrap my head around this because I’ve tried searching but didn’t find anything that can help me. Basically, I want it so after a random amount of time it plays a sound but I want it to play between a time limit so imagine the max time limit is 100 and the least time is over 20 seconds. So I want the sound to choose a number between 20 and 100 and play it with the number it got so it doesn’t take too long to play the sound or for the sound to overlap with itself. I could find a way to make this. How can I make it?
local sound = ---sound
local number = math.random(20,100)
sound:Play()
wait(number)
sound:Pause()
1 Like