#Clocktime script is not working

1 messages · Page 1 of 1 (latest)

queen nimbus
#

so im a very beginner in scripting. my problem is nothing literally changes when i click the imagebutton. the clocktime is set to 12. and i dont even know if this will affect the server or client. if it does affect the server how do i change it to client?

fluid sluice
#

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

fallen tundra
#

Yeah you need Lighting:SetMinutesAfterMidnight() or whatever its called

quartz current
#

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

quartz current
waxen dawn
#

🤦‍♂️

#

instead of using 'saat'

#

just use game.Lighting.ClockTime

queen nimbus
quartz current
#

remember to tag this post as solved!