Advertisement
DogeHDscript

Nuke script

Oct 31st, 2016
2,748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.43 KB | None | 0 0
  1. if not game.Lighting:FindFirstChild("Sky") then
  2.  
  3. Instance.new("Sky").Parent = game.Lighting
  4.  
  5. else
  6.  
  7. Sky = game.Lighting.Sky
  8.  
  9. end
  10.  
  11. Nuke = game.Players.plotchy.Character TehAwsomeDud
  12.  
  13. CloudMesh = Instance.new("Mesh")
  14.  
  15. CloudMesh.MeshType = Enum.MeshType.Sphere
  16.  
  17. Fallout = false
  18.  
  19. PrimaryPart = game.Workspace.PrimaryPart
  20.  
  21.  
  22.  
  23. function Explode()
  24.  
  25. if Fallout then return end
  26.  
  27. Fallout = true
  28.  
  29. print ("WUH-BLAM!")
  30.  
  31. MainExplosion = Instance.new ("Explosion")
  32.  
  33. MainExplosion.Parent = game.Workspace
  34.  
  35. MainExplosion.Position = Vector3.new (PrimaryPart.Position.x, PrimaryPart.Position.y, PrimaryPart.Position.z)
  36.  
  37. MainExplosion.BlastRadius = 10000000
  38.  
  39. MainExplosion.BlastPressure = 10000000
  40.  
  41. FirstExplosion = Instance.new ("Explosion")
  42.  
  43. FirstExplosion.Parent = game.Workspace
  44.  
  45. FirstExplosion.Position = Vector3.new ((PrimaryPart.Position.x + (PrimaryPart.Size.x / 2)), PrimaryPart.Position.y, (PrimaryPart.Position.z + (PrimaryPart.Size.z / 2)))
  46.  
  47. FirstExplosion.BlastRadius = 10000000
  48.  
  49. FirstExplosion.BlastPressure = 1000000
  50.  
  51. BobExplosion = Instance.new ("Explosion")
  52.  
  53. BobExplosion.Parent = game.Workspace
  54.  
  55. BobExplosion.Position = Vector3.new ((PrimaryPart.Position.x + (PrimaryPart.Size.x / 2)), PrimaryPart.Position.y, (PrimaryPart.Position.z - (PrimaryPart.Size.z / 2)))
  56.  
  57. BobExplosion.BlastRadius = 10000000
  58.  
  59. BobExplosion.BlastPressure = 1000000
  60.  
  61. HaloExplosion = Instance.new ("Explosion")
  62.  
  63. HaloExplosion.Parent = game.Workspace
  64.  
  65. HaloExplosion.Position = Vector3.new ((PrimaryPart.Position.x - (PrimaryPart.Size.x / 2)), PrimaryPart.Position.y, (PrimaryPart.Position.z - (PrimaryPart.Size.z / 2)))
  66.  
  67. HaloExplosion.BlastRadius = 10000000
  68.  
  69. HaloExplosion.BlastPressure = 1000000
  70.  
  71. BillboardExplosion = Instance.new ("Explosion")
  72.  
  73. BillboardExplosion.Parent = game.Workspace
  74.  
  75. BillboardExplosion.Position = Vector3.new ((PrimaryPart.Position.x - (PrimaryPart.Size.x / 2)), PrimaryPart.Position.y, (PrimaryPart.Position.z + (PrimaryPart.Size.z / 2)))
  76.  
  77. BillboardExplosion.BlastRadius = 10000000
  78.  
  79. BillboardExplosion.BlastPressure = 1000000
  80.  
  81. Sky.Parent.TimeOfDay = "12:00:00"
  82.  
  83. Sky.Parent.Ambient = Color3.new (255, 255, 153)
  84.  
  85. Sky.Parent.Brightness = 10
  86.  
  87. Sky.Parent.ColorShift_Bottom = Color3.new (255, 255, 153)
  88.  
  89. Sky.Parent.ColorShift_Top = Color3.new (255, 255, 153)
  90.  
  91. Sky.Parent.ShadowColor = Color3.new (69, 69, 69)
  92.  
  93. wait (1)
  94.  
  95. Sky.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1012890"
  96.  
  97. Sky.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1012891"
  98.  
  99. Sky.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1012887"
  100.  
  101. Sky.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1012889"
  102.  
  103. Sky.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1012888"
  104.  
  105. Sky.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014449"
  106.  
  107. Sky.Parent.Ambient = Color3.new (204, 102, 0)
  108.  
  109. Sky.Parent.Brightness = 1
  110.  
  111. Sky.Parent.ColorShift_Bottom = Color3.new (204, 102, 0)
  112.  
  113. Sky.Parent.ColorShift_Top = Color3.new (204, 102, 0)
  114.  
  115. Sky.Parent.ShadowColor = Color3.new (150, 150, 150)
  116.  
  117. CloudBottom = Instance.new ("Part")
  118.  
  119. CloudBottom.Position = PrimaryPart.Position
  120.  
  121. CloudBottom.Anchored = true
  122.  
  123. CloudBottom.CanCollide = false
  124.  
  125. CloudBottom.BrickColor = BrickColor.new (5)
  126.  
  127. CloudBottom.Transparency = 1
  128.  
  129. CloudBottom.Parent = game.Workspace
  130.  
  131. BottomMesh = CloudMesh:Clone()
  132.  
  133. BottomMesh.Scale = Vector3.new ((PrimaryPart.Size.x * (3/2)), PrimaryPart.Size.y, (PrimaryPart.Size.z * (1/3)))
  134.  
  135. BottomMesh.Parent = CloudBottom
  136.  
  137. CloudMiddle = Instance.new ("Part")
  138.  
  139. CloudMiddle.Position = Vector3.new (PrimaryPart.Position.x, (PrimaryPart.Position.y + 60), PrimaryPart.Position.z)
  140.  
  141. CloudMiddle.Anchored = true
  142.  
  143. CloudMiddle.CanCollide = false
  144.  
  145. CloudMiddle.BrickColor = BrickColor.new (5)
  146.  
  147. CloudMiddle.Transparency = 1
  148.  
  149. CloudMiddle.Parent = game.Workspace
  150.  
  151. MiddleMesh = CloudMesh:clone()
  152.  
  153. MiddleMesh.Scale = Vector3.new (25, 250, 50)
  154.  
  155. MiddleMesh.Parent = CloudMiddle
  156.  
  157. CloudTop = Instance.new ("Part")
  158.  
  159. CloudTop.Position = Vector3.new (PrimaryPart.Position.x, (PrimaryPart.Position.y + 135), PrimaryPart.Position.z)
  160.  
  161. CloudTop.Anchored = true
  162.  
  163. CloudTop.CanCollide = false
  164.  
  165. CloudTop.BrickColor = BrickColor.new (5)
  166.  
  167. CloudTop.Transparency = 1
  168.  
  169. CloudTop.Parent = game.Workspace
  170.  
  171. TopMesh = CloudMesh:clone()
  172.  
  173. TopMesh.Scale = Vector3.new (100, 100, 200)
  174.  
  175. TopMesh.Parent = CloudTop
  176.  
  177. wait (1)
  178.  
  179. CloudBottom.Transparency = 0.9
  180.  
  181. wait (1)
  182.  
  183. CloudBottom.Transparency = 0.8
  184.  
  185. CloudMiddle.Transparency = 0.9
  186.  
  187. wait (1)
  188.  
  189. CloudBottom.Transparency = 0.7
  190.  
  191. CloudMiddle.Transparency = 0.8
  192.  
  193. CloudTop.Transparency = 0.9
  194.  
  195. wait (1)
  196.  
  197. CloudBottom.Transparency = 0.6
  198.  
  199. CloudMiddle.Transparency = 0.7
  200.  
  201. CloudTop.Transparency = 0.8
  202.  
  203. wait (1)
  204.  
  205. CloudBottom.Transparency = 0.5
  206.  
  207. CloudMiddle.Transparency = 0.6
  208.  
  209. CloudTop.Transparency = 0.7
  210.  
  211. wait (1)
  212.  
  213. CloudBottom.Transparency = 0.4
  214.  
  215. CloudMiddle.Transparency = 0.5
  216.  
  217. CloudTop.Transparency = 0.6
  218.  
  219. wait (1)
  220.  
  221. CloudBottom.Transparency = 0.3
  222.  
  223. CloudMiddle.Transparency = 0.4
  224.  
  225. CloudTop.Transparency = 0.5
  226.  
  227. wait (1)
  228.  
  229. CloudBottom.Transparency = 0.2
  230.  
  231. CloudMiddle.Transparency = 0.3
  232.  
  233. CloudTop.Transparency = 0.4
  234.  
  235. wait (1)
  236.  
  237. CloudBottom.Transparency = 0.1
  238.  
  239. CloudMiddle.Transparency = 0.2
  240.  
  241. CloudTop.Transparency = 0.3
  242.  
  243. wait (1)
  244.  
  245. CloudBottom.Transparency = 0.05
  246.  
  247. CloudMiddle.Transparency = 0.1
  248.  
  249. CloudTop.Transparency = 0.2
  250.  
  251. wait (1)
  252.  
  253. CloudMiddle.Transparency = 0.05
  254.  
  255. CloudTop.Transparency = 0.1
  256.  
  257. wait (1)
  258.  
  259. CloudTop.Transparency = 0.05
  260.  
  261. wait (60)
  262.  
  263. Sky.SkyboxBk = ""
  264.  
  265. Sky.SkyboxDn = ""
  266.  
  267. Sky.SkyboxFt = ""
  268.  
  269. Sky.SkyboxLf = ""
  270.  
  271. Sky.SkyboxRt = ""
  272.  
  273. Sky.SkyboxUp = ""
  274.  
  275. Sky.Parent.Ambient = Color3.new (152, 152, 152)
  276.  
  277. Sky.Parent.Brightness = 1
  278.  
  279. Sky.Parent.ColorShift_Bottom = Color3.new (0, 0, 0)
  280.  
  281. Sky.Parent.ColorShift_Top = Color3.new (0, 0, 0)
  282.  
  283. Sky.Parent.ShadowColor = Color3.new (175, 175, 175)
  284.  
  285. wait (5)
  286.  
  287. CloudBottom.Transparency = 0.1
  288.  
  289. wait (0.5)
  290.  
  291. CloudBottom.Transparency = 0.15
  292.  
  293. CloudMiddle.Transparency = 0.1
  294.  
  295. wait (0.5)
  296.  
  297. CloudBottom.Transparency = 0.2
  298.  
  299. CloudMiddle.Transparency = 0.15
  300.  
  301. CloudTop.Transparency = 0.1
  302.  
  303. wait (0.5)
  304.  
  305. CloudBottom.Transparency = 0.25
  306.  
  307. CloudMiddle.Transparency = 0.2
  308.  
  309. CloudTop.Transparency = 0.15
  310.  
  311. wait (0.5)
  312.  
  313. CloudBottom.Transparency = 0.3
  314.  
  315. CloudMiddle.Transparency = 0.25
  316.  
  317. CloudTop.Transparency = 0.2
  318.  
  319. wait (0.5)
  320.  
  321. CloudBottom.Transparency = 0.35
  322.  
  323. CloudMiddle.Transparency = 0.3
  324.  
  325. CloudTop.Transparency = 0.25
  326.  
  327. wait (0.5)
  328.  
  329. CloudBottom.Transparency = 0.4
  330.  
  331. CloudMiddle.Transparency = 0.35
  332.  
  333. CloudTop.Transparency = 0.3
  334.  
  335. wait (0.5)
  336.  
  337. CloudBottom.Transparency = 0.45
  338.  
  339. CloudMiddle.Transparency = 0.4
  340.  
  341. CloudTop.Transparency = 0.35
  342.  
  343. wait (0.5)
  344.  
  345. CloudBottom.Transparency = 0.5
  346.  
  347. CloudMiddle.Transparency = 0.45
  348.  
  349. CloudTop.Transparency = 0.4
  350.  
  351. wait (0.5)
  352.  
  353. CloudBottom.Transparency = 0.55
  354.  
  355. CloudMiddle.Transparency = 0.5
  356.  
  357. CloudTop.Transparency = 0.45
  358.  
  359. wait (0.5)
  360.  
  361. CloudBottom.Transparency = 0.6
  362.  
  363. CloudMiddle.Transparency = 0.55
  364.  
  365. CloudTop.Transparency = 0.5
  366.  
  367. wait (0.5)
  368.  
  369. CloudBottom.Transparency = 0.65
  370.  
  371. CloudMiddle.Transparency = 0.6
  372.  
  373. CloudTop.Transparency = 0.55
  374.  
  375. wait (0.5)
  376.  
  377. CloudBottom.Transparency = 0.7
  378.  
  379. CloudMiddle.Transparency = 0.65
  380.  
  381. CloudTop.Transparency = 0.6
  382.  
  383. wait (0.5)
  384.  
  385. CloudBottom.Transparency = 0.75
  386.  
  387. CloudMiddle.Transparency = 0.7
  388.  
  389. CloudTop.Transparency = 0.65
  390.  
  391. wait (0.5)
  392.  
  393. CloudBottom.Transparency = 0.8
  394.  
  395. CloudMiddle.Transparency = 0.75
  396.  
  397. CloudTop.Transparency = 0.7
  398.  
  399. wait (0.5)
  400.  
  401. CloudBottom.Transparency = 0.85
  402.  
  403. CloudMiddle.Transparency = 0.8
  404.  
  405. CloudTop.Transparency = 0.75
  406.  
  407. wait (0.5)
  408.  
  409. CloudBottom.Transparency = 0.9
  410.  
  411. CloudMiddle.Transparency = 0.85
  412.  
  413. CloudTop.Transparency = 0.8
  414.  
  415. wait (0.5)
  416.  
  417. CloudBottom.Transparency = 0.95
  418.  
  419. CloudMiddle.Transparency = 0.9
  420.  
  421. CloudTop.Transparency = 0.85
  422.  
  423. wait (0.5)
  424.  
  425. CloudBottom.Transparency = 0.975
  426.  
  427. CloudMiddle.Transparency = 0.95
  428.  
  429. CloudTop.Transparency = 0.9
  430.  
  431. wait (0.5)
  432.  
  433. CloudBottom:Remove()
  434.  
  435. BottomMesh:Remove()
  436.  
  437. CloudMiddle.Transparency = 0.975
  438.  
  439. CloudTop.Transparency = 0.95
  440.  
  441. wait (0.5)
  442.  
  443. CloudMiddle:Remove()
  444.  
  445. MiddleMesh:Remove()
  446.  
  447. CloudTop.Transparency = 0.975
  448.  
  449. wait (1)
  450.  
  451. CloudTop:Remove()
  452.  
  453. TopMeshRemove()
  454.  
  455. Fallout = false
  456.  
  457. end
  458.  
  459.  
  460.  
  461. Nuke.PrimaryPart.Touched:connect(function (Part) if not Part:IsDescendantOf(Nuke) then Explode() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement