function doClock(undif)
if debounce2 == false then
local undif = 0
local debounce2 = true
local DefaultTimeMinutes = mapStorage.DefaultTimeMinutes.Value
local MinutesLeft = DefaultTimeMinutes
local SecondsLeft = (MinutesLeft * 60) - 1
local MinutesLeft = MinutesLeft - 1
while SecondsLeft ~= 0 do
local SecondsLeft = SecondsLeft - 1
-- i wanna check if a minute passed, remove 1 from the minute value
wait(1)
end
end
end
Any idea why on how to do that if a minute passed, remove 1 from the minute value? (as said on the comment)

1 comment
So I used delay to not stop the entire script while waiting becuase you not only have to subtract seconds but minutes.