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

How you make the seconds random ?

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

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!!

3 comments

0

thx :3

0

No problem!

0

If you can accept my party invite please

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