Advertisement
Tumblebee6

Storm

May 22nd, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.13 KB | None | 0 0
  1. local mess = Instance.new("Message")
  2. mess.Parent = game.Workspace
  3. mess.Text = "Loading Twinmold's Storm System... Please wait..."
  4.  
  5. wait(1)
  6.  
  7. storm_sound = Instance.new("Sound")
  8. storm_sound.Name = "Thunder"
  9. storm_sound.SoundId = "http://www.roblox.com/asset/?id=12222030"
  10. storm_sound.Pitch = 0.5
  11. storm_sound.Parent = game.Workspace
  12. storm_sound.Volume = 1
  13.  
  14. wait(1)
  15.  
  16. local sky = Instance.new("Sky")
  17. sky.Parent = game.Lighting
  18. sky.Name = "Sky"
  19. sky.SkyboxBk = "rbxassetid://246480323"
  20. sky.SkyboxDn = "rbxassetid://246480523"
  21. sky.SkyboxFt = "rbxassetid://246480105"
  22. sky.SkyboxLf = "rbxassetid://246480549"
  23. sky.SkyboxRt = "rbxassetid://246480565"
  24. sky.SkyboxUp = "rbxassetid://246480504"
  25.  
  26.  
  27. --[[ DO NOT CHANGE THE SKY BOX PIECES UNLESS YOU KNOW WHAT YOU ARE DOING!!!
  28. http://www.roblox.com/asset/?id=14274957 -- http://www.roblox.com/asset/?id=14275774 -- http://www.roblox.com/asset/?id=14275781
  29. http://www.roblox.com/asset/?id=14275423
  30. http://www.roblox.com/asset/?id=14275232 -- http://www.roblox.com/asset/?id=14276946 -- http://www.roblox.com/asset/?id=14276954
  31. http://www.roblox.com/asset/?id=14275347 -- http://www.roblox.com/asset/?id=14277218 -- http://www.roblox.com/asset/?id=14277230
  32. http://www.roblox.com/asset/?id=14275129 -- http://www.roblox.com/asset/?id=14276163 -- http://www.roblox.com/asset/?id=14276174
  33. http://www.roblox.com/asset/?id=14275410 -- http://www.roblox.com/asset/?id=14277404 -- http://www.roblox.com/asset/?id=14277409
  34.  
  35. ]]
  36.  
  37. wait(1)
  38.  
  39. mess:Remove()
  40.  
  41. ----------------------------------------------------------------------
  42. --------- This is the options of the Storm System. ---------
  43. ----------------------------------------------------------------------
  44.  
  45. Visibility = 3  -- How well the players will be able to see
  46. Type = 1       -- The type of varity of lightning strikes
  47. Timing = 1     -- The (lowest) time lightning will strike
  48. Timing2 = 10 -- The longest time lighting will strike
  49.  
  50. ----------------------------------------------------------------------
  51. --- If you are using Type 2, then set Timing >= 5 ----
  52. ----------------------------------------------------------------------
  53. ----------------------------------------------------------------------
  54. ----------------------------------------------------------------------
  55.  
  56. if Visibility == 1 then
  57.     game.Lighting.Ambient = Color3.new(239, 239, 239)
  58. elseif Visibility == 2 then
  59.     game.Lighting.Ambient = Color3.new(179, 179, 179)
  60. elseif Visibility == 3 then
  61.     game.Lighting.Ambient = Color3.new(112, 112, 112)
  62. else
  63.     print("Not changing Ambient...")
  64. end
  65. game.Lighting.Brightness = 0
  66.  
  67.  
  68. if Type == 1 then
  69.     while true do
  70.         local Timer = math.random(Timing, Timing2)
  71.         local Where = math.random(1, 5)
  72.         wait(Timer)
  73.         if Where == 1 then
  74.             game.Lighting.Sky.SkyboxBk = "http://www.roblox.com/asset/?id=14275774"
  75.             game.Lighting.Brightness = 0.5
  76.             wait(0.05)
  77.             game.Lighting.Sky.SkyboxBk = "http://www.roblox.com/asset/?id=14275781"
  78.             game.Lighting.Brightness = 1
  79.             game.Workspace.Thunder:Play()
  80.             wait(0.05)
  81.             game.Lighting.Sky.SkyboxBk = "http://www.roblox.com/asset/?id=14275774"
  82.             game.Lighting.Brightness = 0.5
  83.             wait(0.05)
  84.             game.Lighting.Sky.SkyboxBk = "http://www.roblox.com/asset/?id=14274957"
  85.             game.Lighting.Brightness = 0
  86.         elseif Where == 2 then
  87.             game.Lighting.Sky.SkyboxRt = "http://www.roblox.com/asset/?id=14276163"
  88.             game.Lighting.Brightness = 0.5
  89.             wait(0.05)
  90.             game.Lighting.Sky.SkyboxRt = "http://www.roblox.com/asset/?id=14276174"
  91.             game.Lighting.Brightness = 1
  92.             game.Workspace.Thunder:Play()
  93.             wait(0.05)
  94.             game.Lighting.Sky.SkyboxRt = "http://www.roblox.com/asset/?id=14276163"
  95.             game.Lighting.Brightness = 0.5
  96.             wait(0.05)
  97.             game.Lighting.Sky.SkyboxRt = "http://www.roblox.com/asset/?id=14275129"
  98.             game.Lighting.Brightness = 0
  99.         elseif Where == 3 then
  100.             game.Lighting.Sky.SkyboxFt = "http://www.roblox.com/asset/?id=14276946"
  101.             game.Lighting.Brightness = 0.5
  102.             wait(0.05)
  103.             game.Lighting.Sky.SkyboxFt = "http://www.roblox.com/asset/?id=14276954"
  104.             game.Lighting.Brightness = 1
  105.             game.Workspace.Thunder:Play()
  106.             wait(0.05)
  107.             game.Lighting.Sky.SkyboxFt = "http://www.roblox.com/asset/?id=14276946"
  108.             game.Lighting.Brightness = 0.5
  109.             wait(0.05)
  110.             game.Lighting.Sky.SkyboxFt = "http://www.roblox.com/asset/?id=14275232"
  111.             game.Lighting.Brightness = 0
  112.         elseif Where == 4 then
  113.             game.Lighting.Sky.SkyboxLf = "http://www.roblox.com/asset/?id=14277218"
  114.             game.Lighting.Brightness = 0.5
  115.             wait(0.05)
  116.             game.Lighting.Sky.SkyboxLf = "http://www.roblox.com/asset/?id=14277230"
  117.             game.Lighting.Brightness = 1
  118.             game.Workspace.Thunder:Play()
  119.             wait(0.05)
  120.             game.Lighting.Sky.SkyboxLf = "http://www.roblox.com/asset/?id=14277218"
  121.             game.Lighting.Brightness = 0.5
  122.             wait(0.05)
  123.             game.Lighting.Sky.SkyboxLf = "http://www.roblox.com/asset/?id=14275347"
  124.             game.Lighting.Brightness = 0
  125.         elseif Where == 5 then
  126.             game.Lighting.Sky.SkyboxUp = "http://www.roblox.com/asset/?id=14277404"
  127.             game.Lighting.Brightness = 0.5
  128.             wait(0.05)
  129.             game.Lighting.Sky.SkyboxUp = "http://www.roblox.com/asset/?id=14277409"
  130.             game.Lighting.Brightness = 1
  131.             game.Workspace.Thunder:Play()
  132.             wait(0.05)
  133.             game.Lighting.Sky.SkyboxUp = "http://www.roblox.com/asset/?id=14277404"
  134.             game.Lighting.Brightness = 0.5
  135.             wait(0.05)
  136.             game.Lighting.Sky.SkyboxUp = "http://www.roblox.com/asset/?id=14275410"
  137.             game.Lighting.Brightness = 0
  138.         end
  139.     end
  140. end
  141. if Type == 2 then
  142.     while true do
  143.         local Where = math.random(1, 5)
  144.         wait(Timing)
  145.         if Where == 1 then
  146.             game.Lighting.Sky.SkyboxBk = "http://www.roblox.com/asset/?id=14275774"
  147.             game.Lighting.Brightness = 0.5
  148.             wait(0.05)
  149.             game.Lighting.Sky.SkyboxBk = "http://www.roblox.com/asset/?id=14275781"
  150.             game.Lighting.Brightness = 1
  151.             game.Workspace.Thunder:Play()
  152.             wait(0.05)
  153.             game.Lighting.Sky.SkyboxBk = "http://www.roblox.com/asset/?id=14275774"
  154.             game.Lighting.Brightness = 0.5
  155.             wait(0.05)
  156.             game.Lighting.Sky.SkyboxBk = "http://www.roblox.com/asset/?id=14274957"
  157.             game.Lighting.Brightness = 0
  158.         elseif Where == 2 then
  159.             game.Lighting.Sky.SkyboxRt = "http://www.roblox.com/asset/?id=14276163"
  160.             game.Lighting.Brightness = 0.5
  161.             wait(0.05)
  162.             game.Lighting.Sky.SkyboxRt = "http://www.roblox.com/asset/?id=14276174"
  163.             game.Lighting.Brightness = 1
  164.             game.Workspace.Thunder:Play()
  165.             wait(0.05)
  166.             game.Lighting.Sky.SkyboxRt = "http://www.roblox.com/asset/?id=14276163"
  167.             game.Lighting.Brightness = 0.5
  168.             wait(0.05)
  169.             game.Lighting.Sky.SkyboxRt = "http://www.roblox.com/asset/?id=14275129"
  170.             game.Lighting.Brightness = 0
  171.         elseif Where == 3 then
  172.             game.Lighting.Sky.SkyboxFt = "http://www.roblox.com/asset/?id=14276946"
  173.             game.Lighting.Brightness = 0.5
  174.             wait(0.05)
  175.             game.Lighting.Sky.SkyboxFt = "http://www.roblox.com/asset/?id=14276954"
  176.             game.Lighting.Brightness = 1
  177.             game.Workspace.Thunder:Play()
  178.             wait(0.05)
  179.             game.Lighting.Sky.SkyboxFt = "http://www.roblox.com/asset/?id=14276946"
  180.             game.Lighting.Brightness = 0.5
  181.             wait(0.05)
  182.             game.Lighting.Sky.SkyboxFt = "http://www.roblox.com/asset/?id=14275232"
  183.             game.Lighting.Brightness = 0
  184.         elseif Where == 4 then
  185.             game.Lighting.Sky.SkyboxLf = "http://www.roblox.com/asset/?id=14277218"
  186.             game.Lighting.Brightness = 0.5
  187.             wait(0.05)
  188.             game.Lighting.Sky.SkyboxLf = "http://www.roblox.com/asset/?id=14277230"
  189.             game.Lighting.Brightness = 1
  190.             game.Workspace.Thunder:Play()
  191.             wait(0.05)
  192.             game.Lighting.Sky.SkyboxLf = "http://www.roblox.com/asset/?id=14277218"
  193.             game.Lighting.Brightness = 0.5
  194.             wait(0.05)
  195.             game.Lighting.Sky.SkyboxLf = "http://www.roblox.com/asset/?id=14275347"
  196.             game.Lighting.Brightness = 0
  197.         elseif Where == 5 then
  198.             game.Lighting.Sky.SkyboxUp = "http://www.roblox.com/asset/?id=14277404"
  199.             game.Lighting.Brightness = 0.5
  200.             wait(0.05)
  201.             game.Lighting.Sky.SkyboxUp = "http://www.roblox.com/asset/?id=14277409"
  202.             game.Lighting.Brightness = 1
  203.             game.Workspace.Thunder:Play()
  204.             wait(0.05)
  205.             game.Lighting.Sky.SkyboxUp = "http://www.roblox.com/asset/?id=14277404"
  206.             game.Lighting.Brightness = 0.5
  207.             wait(0.05)
  208.             game.Lighting.Sky.SkyboxUp = "http://www.roblox.com/asset/?id=14275410"
  209.             game.Lighting.Brightness = 0
  210.         end
  211.     end
  212. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement