karen_constantine

Untitled

Sep 2nd, 2023
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local part = script.Parent
  2. local PointLight = part.PointLight
  3. local Lighting = game.Lighting
  4. part.Anchored = true
  5. part.Material = Enum.Material.Neon
  6. PointLight.Range = 20
  7. while true do
  8. wait()
  9. Lighting.ClockTime = Lighting.ClockTime + 0.1
  10. if Lighting.ClockTime >= 7 and Lighting.ClockTime <= 18 then
  11. PointLight.Enabled = false
  12. part.BrickColor = BrickColor.Black()
  13. end
  14. if Lighting.ClockTime < 7 or Lighting.ClockTime > 18 then
  15. PointLight.Enabled = true
  16. part.BrickColor = BrickColor.Yellow()
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment