Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:connect(function(player)
- game.Lighting:GetChildren()
- while true do
- wait(1)
- if game.Lighting.TimeOfDay == "18:00:00" then
- script.Parent.PointLight.Enabled = true
- game.Workspace.ExteriorLighting.Posts.A.Material = 288
- elseif game.Lighting.TimeOfDay == "07:00:00" then
- script.Parent.PointLight.Enabled = false
- game.Workspace.ExteriorLighting.Posts.A.Material = 256
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement