I honestly have no idea how to achieve what I am going for, but I am trying to set the "time" to a certain point, and doing this, I need it to cycle through the time of day doing so, for example, lets say the time of day is 12:00:00, and I want it to go to 0:00:00, it would go though 11:00:00, 10:00:00 and so on until it gets to 12:00:00. Its like the day/night cycle, but it stops at a certain point. I tried it here:
local speed = .01
local time = game:service("Lighting"):GetMinutesAfterMidnight()
local full = 60 * 60 * 6 -- the 6 is the number to stop at?
while true do
time = (time + wait()/60*speed)
game:service("Lighting"):SetMinutesAfterMidnight(time)
if time >= full then time = time - full end
