Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local weather = {"Rain", "Thunder", "Fog", "Clear"}
- local rand = math.random(1, #weather)
- while true do
- if weather[rand] == "Thunder" then
- wait()
- game.Lighting.FogEnd = 300
- game.Lighting.FogColor = Color3.new(139/255, 139/255, 139/255)
- script.Parent.Cloud.Transparency = 0
- script.Parent.Thunder.Looped = True
- script.Parent.Thunder:Play()
- wait()
- print("Thunder Storm!")
- wait(100)
- script.Parent.Cloud.Transparency = 1
- script.Parent.Thunder.Looped = False
- game.Lighting.FogEnd = 1000
- end
- if weather[rand] == "Rain" then
- wait()
- game.Lighting.FogEnd = 200
- game.Lighting.FogColor = Color3.new(139/255, 139/255, 139/255)
- script.Parent.Cloud.Transparency = 0
- script.Parent.Wind.Looped = True
- script.Parent.Rain.Looped = True
- script.Parent.Rain:Play()
- script.Parent.Wind:Play()
- wait()
- print("Rain!")
- wait(400)
- script.Parent.Rain.Looped = False
- script.Parent.Wind.Looped = False
- script.Parent.Cloud.Transparency = 1
- game.Lighting.FogEnd = 1000
- end
- if weather[rand] == "Fog" then
- wait()
- game.Lighting.FogEnd = 100
- game.Lighting.FogColor = Color3.new(255, 255, 255)
- script.Parent.Wind.Looped = True
- script.Parent.Wind:Play()
- wait()
- print("Its foggy and cold out.")
- wait(100)
- script.Parent.Wind.Looped = False
- game.Lighting.FogEnd = 1000
- end
- if weather[rand] == "Clear" then
- wait()
- game.Lighting.FogEnd = 10000
- wait()
- print("The Weather is Clear!")
- wait(400)
- game.Lighting.FogEnd = 1000
- end
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement