I have been working on a Day/Night cycle for my friends game. Its a realistic on though so it has more effects than just changing the time of day. It sets the flog closer and everything gets darker. I've been working on it be when I do, it lags like crazy! I'm really confused because it never did this before. Any idea on why?
Test this it wont lag and it is pretty good!
Time = game:service("Lighting")
while true do wait(0.01) Time:SetMinutesAfterMidnight(Time:GetMinutesAfterMidnight()+0.1) end
Mark mine if it works!