Hey guys!
I’m having trouble with dividing numbers and this isn’t a joke I know it sounds like one tho
I need help with figuring out why the code spits out random number instead of dividing
Like when i do 120/60 i should get 2 but get 143.6
Heres the part of code:
local timer = 180 + (#game.Teams.Playing:GetChildren() * 30)
local secs = timer%60
local mins = math.floor(timer-secs/60)
repeat
timer -= 1
timer = math.round(timer)
secs = timer%60
secs = math.round(secs)
mins = math.floor(timer-secs/60)
print(timer-secs)
print(timer-secs/60)
game.ReplicatedStorage.ShowText:FireAllClients(mins..":"..secs)
task.wait(1)
until #game.Teams.Playing:GetPlayers() == 0 or timer <= 0
should print 120 then 2
note: it 120 to stop getting decimals

any help will be appreciated thanks!