#how to fix this?

4 messages · Page 1 of 1 (latest)

night ice
#
while wait() do
    local TimeText = script.Parent.Time

    local hour = os.date("!*t")["hour"]
    local min = os.date("!*t")["min"]
    local sec = os.date("!*t")["sec"]
    
    TimeText.Text = hour..":"..min
    TimeText.Seconds.Text = sec
end
#

How can I do 5:06 instead of 5:6

#

the 15 is the seconds

runic umbra
#

check if the min is less than 10, if it is set the TimeText.Text to hour .. ":0" .. min, if it's not set it as what you have now