Advertisement
Team_Alex

Untitled

Mar 28th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. game.Players.PlayerAdded:connect(function(player)
  2. game.Lighting:GetChildren()
  3. while true do
  4. wait(1)
  5. if game.Lighting.TimeOfDay == "18:00:00" then
  6. script.Parent.PointLight.Enabled = true
  7. game.Workspace.ExteriorLighting.Posts.A.Material = 288
  8. elseif game.Lighting.TimeOfDay == "07:00:00" then
  9. script.Parent.PointLight.Enabled = false
  10. game.Workspace.ExteriorLighting.Posts.A.Material = 256
  11. end
  12. end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement