I’m looking for a system that can make a bomb ticking sound that gets faster the closer the timer reaches to zero. This usually wouldn’t be a problem but the timer is variable and randomized. I can’t seem to get something down that works variably the closer the timer gets to one. anyone able to help me out on this?
Code portion is below
local countnumber = (math.random(4,6))
local function bombtick()
local sound = script.Parent["Siren Blat 1 (SFX)"]
while countnumber > 0 do
wait(1)
countnumber -= 1
end
end