Alright so this script is suppose to get the exact Minutes After Midnight (time) and then add +1 until it reaches the ClockTime provided. It comes up with argument one missing or nil, if you can help me, please do. I'd recommend posting it into the answer sheet instead of comments so if your comment helps i can reward you. If you think you have the answer, I attempted to post a post about this earlier, answer this as well with the same post. It's basically the same thing.
lighting = game.Lighting
--Made By MillerrIAm
----------------------------------------
game.ReplicatedStorage.ExtraEvents.TimeEvent.OnServerEvent:Connect(function(player,truetime)
if truetime == "Day" then
repeat
lighting:GetMinutesAfterMidnight(lighting:SetMinutesAfterMidnight() + 1)
until
lighting.ClockTime == 14
wait(1)
elseif
truetime == "Evening" then
repeat
lighting:GetMinutesAfterMidnight(lighting:SetMinutesAfterMidnight() + 1)
until
lighting.ClockTime == 18
wait(1)
elseif
truetime == "Night" then
repeat
lighting:GetMinutesAfterMidnight(lighting:SetMinutesAfterMidnight() + 1)
until
lighting.ClockTime == 24
wait(1)
end
end)
Thank you in advance for the reading and answers!

1 comment
Thank you so much! Put this answer here as well as you answered both! https://scriptinghelpers.org/questions/85906/i-have-no-idea-what-timeofday-is-or-how-to-work-with-it-how-do-i-fast-forward-time