Hello, I need help with my module, I need each player to have a table with numbers, from which you can remove a certain value.
Currect code :
export type Timer = {
removeAfter: (number, number, Frame) -> (),
}
local Timer : Timer = {}
function Timer.removeAfter(Minutes, Secounds, object)
repeat
if Secounds <= 0 then
Minutes = Minutes - 1
Secounds = 59
else
Secounds = Secounds - 1
end
if Secounds <= 9 then
object.Text = tostring(Minutes)..":0"..tostring(Secounds)
else
object.Text = tostring(Minutes)..":"..tostring(Secounds)
end
wait(1)
until Minutes <= 0 and Secounds <= 0
return true
end
return Timer