I was trying to make it so whenever a second goes by, it beeps (Just to clarify format for the timer is ##.#).
Help
** EDIT
I solved this by my self and heres codes
OLD (DOES NOT WORK)
for i = Time*10,1,-1 do
local NextBeep = (Time*10)-10
if i == NextBeep or Values.Time.Value == NextBeep and Visible == true then
print('Beep!')
Sounds.Beep:Play()
NextBeep = NextBeep - 10
end
Values.Time.Value = i
wait(0.1)
end
NEW
local change = (_Time*10)-10
for i = _Time*10,1,-1 do
Values.Time.Value = i
if i == change and Visible == true then
Sounds.Beep:Play()
change -= 10
end
wait(0.1)
end

1 comment
And its in a function