Guest User

Tornado Weather roblox script

a guest
Oct 7th, 2017
12,057
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -----script By NewBleuguy On Youtube--------
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Model0 = Instance.new("Model")
  19. Part1 = Instance.new("Part")
  20. SpecialMesh2 = Instance.new("SpecialMesh")
  21. Script3 = Instance.new("Script")
  22. Weld4 = Instance.new("Weld")
  23. Script5 = Instance.new("Script")
  24. Sound6 = Instance.new("Sound")
  25. Sound7 = Instance.new("Sound")
  26. Sound8 = Instance.new("Sound")
  27. Script9 = Instance.new("Script")
  28. Sound10 = Instance.new("Sound")
  29. Script11 = Instance.new("Script")
  30. Sound12 = Instance.new("Sound")
  31. Sound13 = Instance.new("Sound")
  32. Sound14 = Instance.new("Sound")
  33. Model0.Name = "Advanced Thunderstorm Simulator"
  34. Model0.Parent = mas
  35. Part1.Name = "Head"
  36. Part1.Parent = Model0
  37. Part1.BrickColor = BrickColor.new("Dark stone grey")
  38. Part1.Rotation = Vector3.new(0, -90, 0)
  39. Part1.Anchored = true
  40. Part1.Locked = true
  41. Part1.Size = Vector3.new(2, 1.20000005, 2)
  42. Part1.CFrame = CFrame.new(-8, 0.600001991, -12, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  43. Part1.BottomSurface = Enum.SurfaceType.Smooth
  44. Part1.TopSurface = Enum.SurfaceType.Smooth
  45. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  46. Part1.Position = Vector3.new(-8, 0.600001991, -12)
  47. Part1.Orientation = Vector3.new(0, -90, 0)
  48. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  49. SpecialMesh2.Parent = Part1
  50. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1527559"
  51. SpecialMesh2.Scale = Vector3.new(-3500, -3500, -3500)
  52. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=1529460"
  53. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  54. SpecialMesh2.Scale = Vector3.new(-3500, -3500, -3500)
  55. Script3.Name = "Spin"
  56. Script3.Parent = Part1
  57. table.insert(cors,sandbox(Script3,function()
  58. -- This script rotates the storm meaning NO BREAKING like other stormclouds -Rayblon
  59. while true do --Infinite loop
  60. wait() --Needed or the game will crash! Put any number (in seconds) in between the ()'s
  61. script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) --Rotates the brick. Change the numbers for how fast/slow the brick rotates.
  62. --(continued from last line) The higher, the slower. The lower, the faster. Change the 0's to "math.pi/number." Make sure the number ISN'T 0!
  63. end --Ends the "while true do"
  64.  
  65. end))
  66. Weld4.Parent = Script3
  67. Script5.Name = "Rayblons Rain Simulator"
  68. Script5.Parent = Model0
  69. table.insert(cors,sandbox(Script5,function()
  70. while true do
  71. wait() -- Lets the computer know that it can take it's time.
  72. script.Rain1:Play()
  73. wait(4)
  74. script.Rain2:play()
  75. wait(3)
  76. script.Rain3:play()
  77. wait(3)
  78.  
  79.  
  80. end
  81.  
  82. end))
  83. Sound6.Name = "Rain3"
  84. Sound6.Parent = Script5
  85. Sound6.Pitch = 0.5
  86. Sound6.SoundId = "http://www.roblox.com/asset/?id=11387922"
  87. Sound6.Volume = 1
  88. Sound7.Name = "Rain2"
  89. Sound7.Parent = Script5
  90. Sound7.Pitch = 0.60000002384186
  91. Sound7.SoundId = "http://www.roblox.com/asset/?id=11387922"
  92. Sound7.Volume = 1
  93. Sound8.Name = "Rain1"
  94. Sound8.Parent = Script5
  95. Sound8.Pitch = 0.64999997615814
  96. Sound8.SoundId = "http://www.roblox.com/asset/?id=11387922"
  97. Sound8.Volume = 1
  98. Script9.Name = "Lightning/Thunder"
  99. Script9.Parent = Model0
  100. table.insert(cors,sandbox(Script9,function()
  101. while true do
  102. game.Lighting.Brightness = 0
  103. wait(0)
  104. game.Lighting.Brightness = 9999999 -- This is the flash from the lightning.
  105. wait(0)
  106. game.Lighting.Brightness = 0 -- this makes it dark during the lightning flashes!
  107. wait(0)
  108. game.Lighting.Brightness = 9999999
  109. wait(0) --this is the wait between the flashes and darkness.
  110. game.Lighting.Brightness = 0
  111. wait(0)
  112. game.Lighting.Brightness = 9999999
  113. wait(0)
  114. game.Lighting.Brightness = 0
  115. wait(7) -- How long it takes for the thunder to sound.
  116. script.Sound:Play()
  117. print("BOOM!!")
  118. wait(5) -- The wait between the thunder and next lightning strike
  119. game.Lighting.Brightness = 0
  120. wait(0)
  121. game.Lighting.Brightness = 9999999
  122. wait(0)
  123. game.Lighting.Brightness = 0
  124. wait(0)
  125. game.Lighting.Brightness = 9999999
  126. wait(0)
  127. game.Lighting.Brightness = 0
  128. wait(0)
  129. game.Lighting.Brightness = 9999999
  130. wait(0)
  131. game.Lighting.Brightness = 0
  132. wait(10)
  133. script.Sound:Play()
  134. print("BOOM!!")
  135. wait(20)
  136. game.Lighting.Brightness = 0
  137. wait(0)
  138. game.Lighting.Brightness = 9999999
  139. wait(0)
  140. game.Lighting.Brightness = 0
  141. wait(0)
  142. game.Lighting.Brightness = 9999999
  143. wait(0)
  144. game.Lighting.Brightness = 0
  145. wait(0)
  146. game.Lighting.Brightness = 9999999
  147. wait(0)
  148. game.Lighting.Brightness = 0
  149. wait(7)
  150. script.Sound:Play()
  151. print("BOOM!!")
  152. wait(5)
  153. game.Lighting.Brightness = 0
  154. wait(0)
  155. game.Lighting.Brightness = 9999999
  156. wait(0)
  157. game.Lighting.Brightness = 0
  158. wait(0)
  159. game.Lighting.Brightness = 9999999
  160. wait(0)
  161. game.Lighting.Brightness = 0
  162. wait(0)
  163. game.Lighting.Brightness = 9999999
  164. wait(0)
  165. game.Lighting.Brightness = 0
  166. wait(1)
  167. script.Sound:Play()
  168. print("BOOM!!")
  169. wait(0)
  170. game.Lighting.Brightness = 0
  171. wait(0)
  172. game.Lighting.Brightness = 9999999
  173. wait(0)
  174. game.Lighting.Brightness = 0
  175. wait(0)
  176. game.Lighting.Brightness = 9999999
  177. wait(0)
  178. game.Lighting.Brightness = 0
  179. wait(0)
  180. game.Lighting.Brightness = 9999999
  181. wait(0)
  182. game.Lighting.Brightness = 0
  183. wait(1)
  184. script.Sound:Play()
  185. print("BOOM!!")
  186. wait(0)
  187. game.Lighting.Brightness = 0
  188. wait(0)
  189. game.Lighting.Brightness = 9999999
  190. wait(0)
  191. game.Lighting.Brightness = 0
  192. wait(0)
  193. game.Lighting.Brightness = 9999999
  194. wait(0)
  195. game.Lighting.Brightness = 0
  196. wait(0)
  197. game.Lighting.Brightness = 9999999
  198. wait(0)
  199. game.Lighting.Brightness = 0
  200. wait(1)
  201. script.Sound:Play()
  202. print("BOOM!!")
  203. wait(0)
  204. game.Lighting.Brightness = 0
  205. wait(0)
  206. game.Lighting.Brightness = 9999999
  207. wait(0)
  208. game.Lighting.Brightness = 0
  209. wait(0)
  210. game.Lighting.Brightness = 9999999
  211. wait(0)
  212. game.Lighting.Brightness = 0
  213. wait(0)
  214. game.Lighting.Brightness = 9999999
  215. wait(0)
  216. game.Lighting.Brightness = 0
  217. wait(7)
  218. script.Sound:Play()
  219. print("BOOM!!")
  220. wait(5)
  221. end -- This ends the script
  222. end))
  223. Sound10.Parent = Script9
  224. Sound10.Pitch = 0.5
  225. Sound10.SoundId = "http://www.roblox.com/asset/?id=12222030"
  226. Sound10.Volume = 1
  227. Script11.Name = "Rayblons Wind Simulator"
  228. Script11.Parent = Model0
  229. table.insert(cors,sandbox(Script11,function()
  230. while true do
  231. wait() -- Lets the computer know that it can take it's time.
  232. script.Rain1:Play()
  233. wait(2)
  234. script.Rain2:play()
  235. wait(2)
  236. script.Rain3:play()
  237. wait(2)
  238.  
  239.  
  240. end
  241.  
  242. end))
  243. Sound12.Name = "Rain3"
  244. Sound12.Parent = Script11
  245. Sound12.Pitch = 0.25
  246. Sound12.SoundId = "http://www.roblox.com/asset/?id=18435238"
  247. Sound12.Volume = 0.30000001192093
  248. Sound13.Name = "Rain2"
  249. Sound13.Parent = Script11
  250. Sound13.Pitch = 0.40000000596046
  251. Sound13.SoundId = "http://www.roblox.com/asset/?id=18435238"
  252. Sound13.Volume = 0.40000000596046
  253. Sound14.Name = "Rain1"
  254. Sound14.Parent = Script11
  255. Sound14.Pitch = 0.30000001192093
  256. Sound14.SoundId = "http://www.roblox.com/asset/?id=18435238"
  257. Sound14.Volume = 0.20000000298023
  258. for i,v in pairs(mas:GetChildren()) do
  259. v.Parent = workspace
  260. pcall(function() v:MakeJoints() end)
  261. end
  262. mas:Destroy()
  263. for i,v in pairs(cors) do
  264. spawn(function()
  265. pcall(v)
  266. end)
  267. end
RAW Paste Data