Can you make a counter not do something for a certain amount of time

I am trying to make a timer which doesn’t do something for 20 seconds and then make it active another timer once it’s done which makes the new timer do something for 20 seconds

The issue is that I have no clue how to do this. Here is my script:

I have tried searching it up but once again that does not work so I am resorting to the Roblox devforum

for count = 1,20,1 do -- I want to make the "do" and turn it into "don't do"
    for count = 1,20,1 do
	    DumbJuiceFlood.Position = DumbJuiceFlood.Position + Vector3.new(0, -0.1, 0)
	    wait(0.075)
    end
end
2 Likes

I didnt understand a lot but try

while wait(20) do
	for count = 1,20,1 do
   		 for count = 1,20,1 do
	 	 	  DumbJuiceFlood.Position = DumbJuiceFlood.Position + Vector3.new(0, -0.1, 0)
			  wait(0.075)
	    end
	end
end
3 Likes

Ohhhh I didn’t realise you could do that. Anyway… I somehow did what I wanted to do by accident??? Thank you for the help

By accident wdym exactly? [Characters limit]

I was messing around with the for count loops and I had multiple of them expecting for them to go at the same time, what I didn’t know is that the first one activates and then the second and then the third etc. I can’t really explain it. Basically I thought I messed up the code but it actually helped.

1 Like