Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function storm(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfe nv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Script3 = Instance.new("Script")
- Weld4 = Instance.new("Weld")
- Script5 = Instance.new("Script")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Sound8 = Instance.new("Sound")
- Script9 = Instance.new("Script")
- Sound10 = Instance.new("Sound")
- Script11 = Instance.new("Script")
- Sound12 = Instance.new("Sound")
- Sound13 = Instance.new("Sound")
- Sound14 = Instance.new("Sound")
- Model0.Name = "Advanced Thunderstorm Simulator"
- Model0.Parent = mas
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Rotation = Vector3.new(0, -90, 0)
- Part1.Anchored = true
- Part1.Locked = true
- Part1.Size = Vector3.new(2, 1.2, 2)
- Part1.CFrame = CFrame.new(-8, 0.6, -12, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.388, 0.372, 0.384)
- Part1.Position = Vector3.new(-8, 0.6, -12)
- Part1.Orientation = Vector3.new(0, -90, 0)
- Part1.Color = Color3.new(0.388, 0.372, 0.384)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1527559"
- SpecialMesh2.Scale = Vector3.new(-3500, -3500, -3500)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=1529460"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(-3500, -3500, -3500)
- Script3.Name = "Spiral"
- Script3.Parent = Part1
- end
- end))
- Sound6.Name = "Rain3"
- Sound6.Parent = Script5
- Sound6.Pitch = 0.5
- Sound6.SoundId = "http://www.roblox.com/asset/?id=11387922"
- Sound6.Volume = 1
- Sound7.Name = "Rain2"
- Sound7.Parent = Script5
- Sound7.Pitch = 0.6
- Sound7.SoundId = "http://www.roblox.com/asset/?id=11387922"
- Sound7.Volume = 1
- Sound8.Name = "Rain1"
- Sound8.Parent = Script5
- Sound8.Pitch = 0.65
- Sound8.SoundId = "http://www.roblox.com/asset/?id=11387922"
- Sound8.Volume = 1
- Script9.Name = "Lightning/Thunder"
- Script9.Parent = Model0
- table.insert(cors,storm(Script9,function()
- while true do
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(7)
- script.Sound:Play()
- print("BOOM")
- wait(5)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(10)
- script.Sound:Play()
- print("BOOM")
- wait(20)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(7)
- script.Sound:Play()
- print("BOOM")
- wait(5)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(1)
- script.Sound:Play()
- print("BOOM")
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(1)
- script.Sound:Play()
- print("BOOM")
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(1)
- script.Sound:Play()
- print("BOOM")
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(0)
- game.Lighting.Brightness = 9999999
- wait(0)
- game.Lighting.Brightness = 0
- wait(7)
- script.Sound:Play()
- print("BOOM")
- wait(5)
- end
- end))
- Sound10.Parent = Script9
- Sound10.Pitch = 0.5
- Sound10.SoundId = "http://www.roblox.com/asset/?id=12222030"
- Sound10.Volume = 1
- Script11.Name = "Storm Simulator"
- Script11.Parent = Model0
- table.insert(cors,storm(Script11,function()
- while true do
- wait()
- script.Rain1:Play()
- wait(2)
- script.Rain2:play()
- wait(2)
- script.Rain3:play()
- wait(2)
- end
- end))
- Sound12.Name = "Rain3"
- Sound12.Parent = Script11
- Sound12.Pitch = 0.25
- Sound12.SoundId = "http://www.roblox.com/asset/?id=18435238"
- Sound12.Volume = 0.30000001192093
- Sound13.Name = "Rain2"
- Sound13.Parent = Script11
- Sound13.Pitch = 0.40000000596046
- Sound13.SoundId = "http://www.roblox.com/asset/?id=18435238"
- Sound13.Volume = 0.40000000596046
- Sound14.Name = "Rain1"
- Sound14.Parent = Script11
- Sound14.Pitch = 0.30000001192093
- Sound14.SoundId = "http://www.roblox.com/asset/?id=18435238"
- Sound14.Volume = 0.20000000298023
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement