How would I make the wait time decrease, as the count increases on this loop?

I’m trying to make my own time ticking bomb, but I’m stuck on the part how these bombs start ticking faster as they get closer to exploding

How would I make the wait time decrease, as the count increases on this loop?

for count = 1, 10 do
	print("looping")
	BombClone.BrickColor = BrickColor.new("Medium stone grey")
	wait(0.5)
	BombClone.BrickColor = BrickColor.new("Really red")
	TickSound:Play()
	wait(0.5)
end

Just add a “CurrentTime” variable.

local CurrentTime = 1

for count = 1, 10 do
    CurrentTime -= .1
	print("looping")
	BombClone.BrickColor = BrickColor.new("Medium stone grey")
	task.wait(CurrentTime)
	BombClone.BrickColor = BrickColor.new("Really red")
	TickSound:Play()
	task.wait(CurrentTime)
end
1 Like