✓ Accepted answer
Hello, TheLondiux!
I've found lots of errors on your script:
1 - Use end to close a block of code, like a while, if, or any other code blocks that you need to close
2 - You don't need to place the then on the next line, it just makes your code harder to read
3 - If the object at game.Lighting.TimeOfDay is a value, you should add a .Value to gets it's value...
while true do
wait()
if game.Lighting.TimeOfDay == 06.5 then
game.Lighting.GlobalShadows = true
end
if game.Lighting.ClockTime == 18 then
game.Lighting.GlobalShadows = false
end
end
Also, Scripting Helpers is not a place where you place a random script and we give you the answer, please post something that make sense with the question
Hope this helps
Good Luck with your games
5 comments
What is game.Lighting.GlobalShadows? A value?
This... oh man. This will never work.
You have an infinite loop before the code. Not only will your code never reach the first if statement, it will also crash your game.
This website does require you to post the code that you have tried. However, that does not mean putting some random stuff together.
eh, I wouldn't really use TimeOfDay, i'd rather use ClockTime