SmileyS

Custom Time Gui | Roblox Studio

Sep 10th, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. while true do
  2. local Hour = script.Parent.Minute
  3. local Minute = script.Parent.Hour
  4.  
  5. script.Parent.TimeLabel.Text = string.format("%0.2i", Hour.Value).. ":" ..string.format("%0.2i", Minute.Value) -- Makes the number 01 from 1
  6. if Minute.Value >= 60 then
  7. Minute.Value = 0
  8. Hour.Value = Hour.Value + 1
  9. end
  10. if Hour.Value == 12 then
  11. Hour.Value = 1
  12. end
  13. if Minute.Value ~= 60 then
  14. Minute.Value = Minute.Value + 1
  15. end
  16. wait(1)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment