Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part = script.Parent
- local PointLight = part.PointLight
- local Lighting = game.Lighting
- part.Anchored = true
- part.Material = Enum.Material.Neon
- PointLight.Range = 20
- while true do
- wait()
- Lighting.ClockTime = Lighting.ClockTime + 0.1
- if Lighting.ClockTime >= 7 and Lighting.ClockTime <= 18 then
- PointLight.Enabled = false
- part.BrickColor = BrickColor.Black()
- end
- if Lighting.ClockTime < 7 or Lighting.ClockTime > 18 then
- PointLight.Enabled = true
- part.BrickColor = BrickColor.Yellow()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment