Hey!
Thank you for taking your time out of my day to help me with this.
I have a building. I also got a script (located ServerScriptService). That script should make the building's windows change color whenever Lighting's ClockTime reaches 17 to make it seem like it's lit up. Then when Lighting's ClockTime reaches 07, it should change the part's reflectance.
This script doesn't seem to work though!
New to coding, so any help would be appreciated!
Code:
Lighting = game.Lighting
Map = game.Workspace
while true do
if game.Lighting.ClockTime == 17 then
Map.Bank.WindowDetail.Reflectance = 0
Map.Bank.WindowDetail.BrickColor = BrickColor.new ("Cool yellow")
end
if game.Lighting.Lighting.ClockTime == 07 then
Map.Bank.WindowDetail.Refelctance = 1
end
end
