Clock Time Issue

Hello, I’m making a day/night cycle but the clock is “freezing” for a second.
This is due to the timer has no floor, like math.floor so it’s just 10.199999809265137 and I don’t know how to fix it.

The video and script are below.

Script for time

while wait(1) do
	game.Lighting.ClockTime += 0.01
	print("Time is now "..game.Lighting.ClockTime)
end

And the other thing is on how to keep the clock UI view 10:03 instead of 10:3

Clock UI Script

local lighting = game:GetService("Lighting")

while wait(.1) do
	local hours = math.floor(lighting:GetMinutesAfterMidnight() / 60)
	local minutes = lighting:GetMinutesAfterMidnight() - (hours * 60)
	
	script.Parent.Text = hours..":"..math.floor(minutes)
	

end

i dont know the script but i dont want to read the script

if minutes < 60 then
	text = minutes .. "0"
end

That didn’t work.

then turn the minutes to seconds

if seconds < 60 then
	text = seconds .. "0"
end

This isn’t a recommended method for changing a clock time

If your changing Lighting.TimeOfDay you need to format it to hh:mm:ss

While if your using Lighting.ClockTime you need to format it to hours 0-24 hours

But if your using Lighting:SetMinutesAfterMidnight
You won’t need to format it, its just simple

If you want it to make it 05:30 then you should do Lighting:SetMinutesAfterMightnight(360) you should give it mins, since 5:30 is 60x 5 + 30 mins, so it makes it 5:30
Like this you can do easily, but clock time is meant for integers mostly like 0-24 so you might need to do alot of calculation to avoid messing up