Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Lighting:SetMinutesAfterMidnight(10 * 60)
- number = 0
- while true do
- number = number + 1
- print(number)
- wait(1)
- end
- minutesAfterMidnight = 0
- while true do
- minutesAfterMidnight = minutesAfterMidnight + 1
- game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
- wait(.1)
- end
- lightPart = game.Workspace.LightPart
- minutesAfterMidnight = 0
- while true do
- minutesAfterMidnight = minutesAfterMidnight + 10
- game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
- if game.Lighting:GetMinutesAfterMidnight() == 6 * 60 then
- lightPart.Material = Enum.Material.Plastic
- lightPart.PointLight.Enabled = false
- end
- wait(0.1)
- end
- lightPart = game.Workspace.LightPart
- minutesAfterMidnight = 0
- while true do
- minutesAfterMidnight = minutesAfterMidnight + 10
- game.Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
- wait(0.1)
- if game.Lighting:GetMinutesAfterMidnight() == 6 * 60 then -- checks for 6AM
- lightPart.Material = Enum.Material.Plastic
- lightPart.PointLight.Enabled = false
- end
- if game.Lighting:GetMinutesAfterMidnight() == 18 * 60 then -- checks for 6PM
- lightPart.Material = Enum.Material.Neon
- lightPart.PointLight.Enabled = true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement