So I was making a game and the time was Military time and I want to it to be normal time and I don't want to use free models the code was this:
local ClockTime = game.Lighting.ClockTime
game.Lighting.ClockTime = 9
local minutesAfterMidnight = 540
while true do
game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
minutesAfterMidnight = minutesAfterMidnight + 15
wait(15)
end
if ClockTime == 13 then
ClockTime = 1
if not ClockTime == 13 then do
ClockTime = 9
end
end

1 comment
What is not working on this?