Advertisement
pro-themes

Storm (Lua Project)

Jun 10th, 2018
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.82 KB | None | 0 0
  1. function storm(var,func)
  2.     local env = getfenv(func)
  3.     local newenv = setmetatable({},{
  4.         __index = function(self,k)
  5.             if k=="script" then
  6.                 return var
  7.             else
  8.                 return env[k]
  9.             end
  10.         end,
  11.     })
  12.     setfe nv(func,newenv)
  13.     return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Model0 = Instance.new("Model")
  18. Part1 = Instance.new("Part")
  19. SpecialMesh2 = Instance.new("SpecialMesh")
  20. Script3 = Instance.new("Script")
  21. Weld4 = Instance.new("Weld")
  22. Script5 = Instance.new("Script")
  23. Sound6 = Instance.new("Sound")
  24. Sound7 = Instance.new("Sound")
  25. Sound8 = Instance.new("Sound")
  26. Script9 = Instance.new("Script")
  27. Sound10 = Instance.new("Sound")
  28. Script11 = Instance.new("Script")
  29. Sound12 = Instance.new("Sound")
  30. Sound13 = Instance.new("Sound")
  31. Sound14 = Instance.new("Sound")
  32. Model0.Name = "Advanced Thunderstorm Simulator"
  33. Model0.Parent = mas
  34. Part1.Name = "Head"
  35. Part1.Parent = Model0
  36. Part1.BrickColor = BrickColor.new("Dark stone grey")
  37. Part1.Rotation = Vector3.new(0, -90, 0)
  38. Part1.Anchored = true
  39. Part1.Locked = true
  40. Part1.Size = Vector3.new(2, 1.2, 2)
  41. Part1.CFrame = CFrame.new(-8, 0.6, -12, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  42. Part1.BottomSurface = Enum.SurfaceType.Smooth
  43. Part1.TopSurface = Enum.SurfaceType.Smooth
  44. Part1.Color = Color3.new(0.388, 0.372, 0.384)
  45. Part1.Position = Vector3.new(-8, 0.6, -12)
  46. Part1.Orientation = Vector3.new(0, -90, 0)
  47. Part1.Color = Color3.new(0.388, 0.372, 0.384)
  48. SpecialMesh2.Parent = Part1
  49. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1527559"
  50. SpecialMesh2.Scale = Vector3.new(-3500, -3500, -3500)
  51. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=1529460"
  52. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  53. SpecialMesh2.Scale = Vector3.new(-3500, -3500, -3500)
  54. Script3.Name = "Spiral"
  55. Script3.Parent = Part1
  56.  
  57. end
  58.  
  59. end))
  60. Sound6.Name = "Rain3"
  61. Sound6.Parent = Script5
  62. Sound6.Pitch = 0.5
  63. Sound6.SoundId = "http://www.roblox.com/asset/?id=11387922"
  64. Sound6.Volume = 1
  65. Sound7.Name = "Rain2"
  66. Sound7.Parent = Script5
  67. Sound7.Pitch = 0.6
  68. Sound7.SoundId = "http://www.roblox.com/asset/?id=11387922"
  69. Sound7.Volume = 1
  70. Sound8.Name = "Rain1"
  71. Sound8.Parent = Script5
  72. Sound8.Pitch = 0.65
  73. Sound8.SoundId = "http://www.roblox.com/asset/?id=11387922"
  74. Sound8.Volume = 1
  75. Script9.Name = "Lightning/Thunder"
  76. Script9.Parent = Model0
  77. table.insert(cors,storm(Script9,function()
  78. while true do
  79. game.Lighting.Brightness = 0
  80. wait(0)
  81. game.Lighting.Brightness = 9999999
  82. wait(0)
  83. game.Lighting.Brightness = 0
  84. wait(0)
  85. game.Lighting.Brightness = 9999999
  86. wait(0)
  87. game.Lighting.Brightness = 0
  88. wait(0)
  89. game.Lighting.Brightness = 9999999
  90. wait(0)
  91. game.Lighting.Brightness = 0
  92. wait(7)
  93. script.Sound:Play()
  94. print("BOOM")
  95. wait(5)
  96. game.Lighting.Brightness = 0
  97. wait(0)
  98. game.Lighting.Brightness = 9999999
  99. wait(0)
  100. game.Lighting.Brightness = 0
  101. wait(0)
  102. game.Lighting.Brightness = 9999999
  103. wait(0)
  104. game.Lighting.Brightness = 0
  105. wait(0)
  106. game.Lighting.Brightness = 9999999
  107. wait(0)
  108. game.Lighting.Brightness = 0
  109. wait(10)
  110. script.Sound:Play()
  111. print("BOOM")
  112. wait(20)
  113. game.Lighting.Brightness = 0
  114. wait(0)
  115. game.Lighting.Brightness = 9999999
  116. wait(0)
  117. game.Lighting.Brightness = 0
  118. wait(0)
  119. game.Lighting.Brightness = 9999999
  120. wait(0)
  121. game.Lighting.Brightness = 0
  122. wait(0)
  123. game.Lighting.Brightness = 9999999
  124. wait(0)
  125. game.Lighting.Brightness = 0
  126. wait(7)
  127. script.Sound:Play()
  128. print("BOOM")
  129. wait(5)
  130. game.Lighting.Brightness = 0
  131. wait(0)
  132. game.Lighting.Brightness = 9999999
  133. wait(0)
  134. game.Lighting.Brightness = 0
  135. wait(0)
  136. game.Lighting.Brightness = 9999999
  137. wait(0)
  138. game.Lighting.Brightness = 0
  139. wait(0)
  140. game.Lighting.Brightness = 9999999
  141. wait(0)
  142. game.Lighting.Brightness = 0
  143. wait(1)
  144. script.Sound:Play()
  145. print("BOOM")
  146. wait(0)
  147. game.Lighting.Brightness = 0
  148. wait(0)
  149. game.Lighting.Brightness = 9999999
  150. wait(0)
  151. game.Lighting.Brightness = 0
  152. wait(0)
  153. game.Lighting.Brightness = 9999999
  154. wait(0)
  155. game.Lighting.Brightness = 0
  156. wait(0)
  157. game.Lighting.Brightness = 9999999
  158. wait(0)
  159. game.Lighting.Brightness = 0
  160. wait(1)
  161. script.Sound:Play()
  162. print("BOOM")
  163. wait(0)
  164. game.Lighting.Brightness = 0
  165. wait(0)
  166. game.Lighting.Brightness = 9999999
  167. wait(0)
  168. game.Lighting.Brightness = 0
  169. wait(0)
  170. game.Lighting.Brightness = 9999999
  171. wait(0)
  172. game.Lighting.Brightness = 0
  173. wait(0)
  174. game.Lighting.Brightness = 9999999
  175. wait(0)
  176. game.Lighting.Brightness = 0
  177. wait(1)
  178. script.Sound:Play()
  179. print("BOOM")
  180. wait(0)
  181. game.Lighting.Brightness = 0
  182. wait(0)
  183. game.Lighting.Brightness = 9999999
  184. wait(0)
  185. game.Lighting.Brightness = 0
  186. wait(0)
  187. game.Lighting.Brightness = 9999999
  188. wait(0)
  189. game.Lighting.Brightness = 0
  190. wait(0)
  191. game.Lighting.Brightness = 9999999
  192. wait(0)
  193. game.Lighting.Brightness = 0
  194. wait(7)
  195. script.Sound:Play()
  196. print("BOOM")
  197. wait(5)
  198. end
  199. end))
  200. Sound10.Parent = Script9
  201. Sound10.Pitch = 0.5
  202. Sound10.SoundId = "http://www.roblox.com/asset/?id=12222030"
  203. Sound10.Volume = 1
  204. Script11.Name = "Storm Simulator"
  205. Script11.Parent = Model0
  206. table.insert(cors,storm(Script11,function()
  207. while true do
  208. wait()
  209. script.Rain1:Play()
  210. wait(2)
  211. script.Rain2:play()
  212. wait(2)
  213. script.Rain3:play()
  214. wait(2)
  215.  
  216.  
  217. end
  218.  
  219. end))
  220. Sound12.Name = "Rain3"
  221. Sound12.Parent = Script11
  222. Sound12.Pitch = 0.25
  223. Sound12.SoundId = "http://www.roblox.com/asset/?id=18435238"
  224. Sound12.Volume = 0.30000001192093
  225. Sound13.Name = "Rain2"
  226. Sound13.Parent = Script11
  227. Sound13.Pitch = 0.40000000596046
  228. Sound13.SoundId = "http://www.roblox.com/asset/?id=18435238"
  229. Sound13.Volume = 0.40000000596046
  230. Sound14.Name = "Rain1"
  231. Sound14.Parent = Script11
  232. Sound14.Pitch = 0.30000001192093
  233. Sound14.SoundId = "http://www.roblox.com/asset/?id=18435238"
  234. Sound14.Volume = 0.20000000298023
  235. for i,v in pairs(mas:GetChildren()) do
  236.     v.Parent = workspace
  237.     pcall(function() v:MakeJoints() end)
  238. end
  239. mas:Destroy()
  240. for i,v in pairs(cors) do
  241.     spawn(function()
  242.         pcall(v)
  243.     end)
  244. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement