Why are the minutes wrong?

I would need help with finding this issue why the minutes are wrong, this is the script but the minutes are wrong for some reason?

local Time = os.time() + 84600
local Hours = math.floor((Time - os.time()) / 3600)
local Minutes = math.floor(((Time - os.time()) / 60) / Hours)
Timer.Text = Hours…“:”…Minutes

Why are you diving the minutes by the hours? This should work fine:

local Minutes = math.floor((Time - os.time()) / 60) % 60
1 Like