I'm try making daytime changing script, but it didn't work, this is my script.
while true do game.Lightning.TimeOfDay = game.Lightning.TimeOfDay + "01:00:00" wait(1) end
Thx
The issue is,you are trying to perform an arithmetic operation on a string value.Also,you made a common typo mistake in your code:"Lightning".
You would need to assign a number variable to store the value of the current time,then convert it into a string.
Here is an example script of what I'm talking about:
Minutes=0 Hours=0 TimeString="" while true do Minutes=Minutes+10 if Minutes>=60 then Minutes=0 Hours=Hours+1 end if Hours>24 then Hours=0 end game.Lighting.TimeOfDay=tostring(Hours)..":"..tostring(Minutes)..":00" wait(1) end
I hope this helps.