#Clocktime script is not working
1 messages · Page 1 of 1 (latest)
Nothing appears at all?
There's 1 issue I can already see
Haven't worked with lighting but saat is set to clocktime on when game loads the script, and changing it (saat=6.5) won't make it change the lighting property
Cuz it's just set to a number
Yeah you need Lighting:SetMinutesAfterMidnight() or whatever its called
Hey. When you do saat = game.Lighting.ClockTime
what it does is first see what number game.Lighting.ClockTime is, then it sets saat to that number
so when you change saat later, you're just changing the saat number. To actually make a change on the game, you need to do
game.Lighting.ClockTime = saat
after the if/else stuff you made
Try that, and let me know if it doesnt work still
this worked. thanks
but im still curious about why did i have to add game.Lighting.ClockTime = saat when the game.Lighting.ClockTime was already defined as saat
The game.Lighting.ClockTime was not defined as saat
instead you checked game.Lighting.ClockTime and found that it was e.g. 6
then you put that 6 into saat
the left sides are the ones being "defined"
e.g.
saat = game.Lighting.ClockTime
saat is defined as the clocktime, which is a number
game.Lighting.ClockTime = saat
game.Lighting.ClockTime is defined as saat which is a number
remember to tag this post as solved!