Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my script not update the time in regular intervals?

Asked by 7 years ago

I think it's a new feature, but I cannot find anything related to this no matter how much I search it up.

I have a day/night script that updates the time in regular intervals like so.

minutesAfterMidnight = 400
while true do
    minutesAfterMidnight = minutesAfterMidnight + 1
    game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
    wait(.1)
end

However, I've noticed that the time during sunrise and sunset speeds by while the time during night and early afternoon slows to a crawl. Anyone got any information on this? It's interesting, to say the least.

0
Also for some reason this is only in studio. When I go into online mode it works as normal... what is happening lol ItsTheELitist 29 — 7y
2
It seems to work for me in studio. Could you explain your problem a little more in depth? Mr_Octree 101 — 7y
0
Instead of updating the time to add one in-game minute every 1/10 of a second, the time it takes to update fluctuates throughout the day. Like I said, the time goes by much quicker during sunrise and sunset than it does at, say, 3 PM. ItsTheELitist 29 — 7y
0
And I know it has nothing to do with the script itself because: 1. that's literally a copy and paste off the roblox wiki, and 2. there aren't any other scripts running on the place. i'd just like to know why it's doing this. ItsTheELitist 29 — 7y

Answer this question