#Clock style timer

3 messages · Page 1 of 1 (latest)

sudden drift
#

Every tutorial I find gives an example of a counting down timer, could anyone help me make a timer that would work sort of like stardew valley's if you have ever played it, it'll always be going like a minute every second and it would be a 12 hour clock i can make ui but just need help with the code since this is my first major project im making

#

Clock style timer

sudden drift
#

ok i followed a tutorial i found for a clock and this script is the server script

local Time = .1
local TimeChange = 0.01 -- Clock speed scaling


while wait(Time) do
    game.Lighting.ClockTime = game.Lighting.ClockTime + TimeChange
end

and this one is the local script within text label

while true do
    script.Parent.Text = string.sub (game.Lighting.TimeOfDay,1,5)
    wait()
end

does anyone know how to make this a 12 hour clock and not go from 0:00 to 24:00