while true do
script.Parent.Enabled = false
wait(3) -- <<<< like the repeater it repeats but seconds go random like from 2 to maximum 5
script.Parent.Enabled = true
wait(3) -- same here minimum 2 maximum 5
end
✓ ANSWER ACCEPTED
How you make the seconds random ?
1 answer
✓ Accepted answer
This is quite a simple function that can be aconmplished using "math.random"
while true do
script.Parent.Enabled = false
wait(math.random(1,5)) --this would choose any random number between 1 and 5 including 1 and 5
script.Parent.Enabled = true
wait(math.random(1,5))
end
Hope this helped!! If it did make sure to click accept answer!!
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
thx :3
No problem!
If you can accept my party invite please