Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local Hour = script.Parent.Minute
- local Minute = script.Parent.Hour
- script.Parent.TimeLabel.Text = string.format("%0.2i", Hour.Value).. ":" ..string.format("%0.2i", Minute.Value) -- Makes the number 01 from 1
- if Minute.Value >= 60 then
- Minute.Value = 0
- Hour.Value = Hour.Value + 1
- end
- if Hour.Value == 12 then
- Hour.Value = 1
- end
- if Minute.Value ~= 60 then
- Minute.Value = Minute.Value + 1
- end
- wait(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment