joe201501

☢️Nuke script☢️

Mar 22nd, 2018
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Made by imtellingmommy/Narutozo on roblox.")
  2. print("Please, do not remove this from the script.")
  3. print("If you are showcasing make sure to give credit.")
  4. print("If there are any problems, dm mommy#4890.")
  5. print("Go to line 133 to edit the size of the nuke.")
  6. print("Controls are c to enable and c again to disable, p to enable dropping off from sky, and o to enable rocketing into the air and back down into the ground.")
  7. warn("This script is very early, glitches/lag may occur.")
  8. print("Nuke Em' All")
  9.  
  10. local mouse = game.Players.LocalPlayer:GetMouse()
  11.  
  12. local allowed = false
  13. local count = 1
  14.  
  15. local drop = false
  16.  
  17. musid = "rbxassetid://674318415"
  18. local mus = Instance.new("Sound",Character)
  19. mus.Name = "mus"
  20. mus.SoundId = musid
  21. mus.Looped = true
  22. mus.Volume = 10000
  23. mus:Play()
  24.  
  25. mouse.KeyDown:connect(function(key)
  26. if key == "p" then
  27. drop = true
  28. print("Rocket will spawn high")
  29. elseif key == "o" then
  30. drop = false
  31. print("Rocket will spawn low")
  32. end
  33. end)
  34.  
  35. mouse.KeyDown:connect(function(key)
  36. if key == "c" and count == 1 then
  37. allowed = true
  38. print("Enabled")
  39. count=count+1
  40. elseif key == "c" and count == 2 then
  41. print("Disabled")
  42. count = 1
  43. allowed = false
  44. end
  45. end)
  46.  
  47. local touched = false
  48.  
  49. mouse.Button1Down:connect(function()
  50. if allowed == true then
  51.  
  52. local anchored = true
  53. local sound = Instance.new("Sound", workspace)
  54. sound.SoundId = "rbxassetid://146971619"
  55. sound:Play()
  56. sound.TimePosition = 8
  57. local rocket = Instance.new("Part", workspace)
  58. workspace.Camera.CameraSubject = rocket
  59. rocket.CanCollide = true
  60. --rocket.Anchored = true
  61. spawn(function()
  62. while wait() do
  63. --print(sound.TimePosition)
  64. end
  65. end)
  66.  
  67.  
  68. spawn(function()
  69. while anchored == true do
  70. if sound.TimePosition > 5.3 then
  71. --rocket.Anchored = false
  72. anchored = false
  73. end
  74. wait()
  75. end
  76. end)
  77.  
  78. for i = 1,20 do
  79. local fire = Instance.new("Fire", rocket)
  80. fire.Size = 10
  81. end
  82.  
  83. if drop == true then
  84. rocket.Position = Vector3.new(mouse.Hit.X,mouse.Hit.Y+900,mouse.Hit.Z)
  85. elseif drop == false then
  86. rocket.Position = Vector3.new(mouse.Hit.X,mouse.Hit.Y+9,mouse.Hit.Z)
  87. end
  88.  
  89. rocket.Size = Vector3.new(6,6,8)
  90.  
  91. spawn(function()
  92. rocket.CFrame = rocket.CFrame*CFrame.Angles(math.rad(90),0,math.rad(90))
  93. if drop == false then
  94. wait(4)
  95. elseif drop == true then
  96. wait()
  97. end
  98.  
  99. local bodyg = Instance.new("BodyGyro", rocket)
  100. bodyg.maxTorque = Vector3.new(100,100,100)
  101. bodyg.P = 500
  102. while wait() do
  103. local target = mouse.Hit.p
  104. bodyg.CFrame = CFrame.new(rocket.CFrame.p, target)
  105. end
  106. end)
  107.  
  108. --rocket.CustomPhysicalProperties = PhysicalProperties.new(500,500,500,5000,500)
  109. --rocket.
  110.  
  111. local bodyvel = Instance.new("BodyVelocity", rocket)
  112. bodyvel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  113.  
  114. spawn(function()
  115. while wait() do
  116. bodyvel.Velocity = rocket.CFrame.lookVector*900
  117. end
  118. end)
  119.  
  120.  
  121. local mesh = Instance.new("SpecialMesh", rocket)
  122. mesh.MeshId = "http://www.roblox.com/asset/?id=2251534"
  123. mesh.TextureId = "http://www.roblox.com/asset/?id=2758175"
  124. mesh.Scale = Vector3.new(2,2,3.5)
  125.  
  126. rocket.Touched:connect(function()
  127. local BasePosition = rocket.CFrame.p
  128.  
  129. touched = true
  130.  
  131. if touched == true then
  132. workspace.Camera.CameraSubject = game.Players.LocalPlayer.Character.Torso
  133. rocket:Destroy()
  134. touched = false
  135. local CloudID= "http://www.roblox.com/asset/?id=1095708"
  136. local ColorTexture = "http://www.roblox.com/asset/?ID=1361097"
  137. local RingID = "http://www.roblox.com/asset/?id=3270017"
  138. local SphereID = "http://www.roblox.com/asset/?id=1185246"
  139.  
  140.  
  141. local Size = 450 --Change the size if you want.
  142.  
  143. local Exp = Instance.new("Model")
  144. Exp.Name = "Tsar"
  145. Exp.Parent = game.Workspace
  146.  
  147. local BasePart = Instance.new("Part")
  148. BasePart.formFactor = 0
  149. BasePart.TopSurface = 0
  150. BasePart.BottomSurface = 0
  151. BasePart.Anchored = true
  152. BasePart.Locked = true
  153. BasePart.CanCollide = false
  154.  
  155. local BaseMesh = Instance.new("SpecialMesh")
  156. BaseMesh.MeshType = "FileMesh"
  157.  
  158. local CloudMesh = BaseMesh:clone()
  159. CloudMesh.MeshId = CloudID
  160. CloudMesh.TextureId = ColorTexture
  161. CloudMesh.VertexColor = Vector3.new(0.9,0.6,0)
  162.  
  163. local RingMesh = BaseMesh:clone()
  164. RingMesh.MeshId = RingID
  165.  
  166. local SphereMesh = BaseMesh:clone()
  167. SphereMesh.MeshId = SphereID
  168.  
  169. local Clouds = {}
  170. local ShockWave = {}
  171.  
  172.  
  173. function Effects()
  174. delay(0,function()
  175. for i = 10, 1,-0.5 do
  176. wait()
  177. game.Lighting.Brightness = i
  178. end
  179. game.Lighting.Ambient = Color3.new(152,159,36)
  180. for i = 0,1,0.01 do
  181. game.Lighting.Ambient = game.Lighting.Ambient:Lerp(Color3.new(0,0,0),i)
  182. wait()
  183. end
  184. end)
  185. end
  186.  
  187. function Destruction(Pos,Radius)
  188. local function Destroy(Model)
  189. for i ,v in ipairs(Model:getChildren()) do
  190. if v:isA("BasePart") then
  191. if (v.Position-Pos).magnitude < Radius then
  192. if v.Anchored == false then
  193. v:BreakJoints()
  194. v.Velocity = CFrame.new(v.Position,Pos):vectorToWorldSpace(Vector3.new(math.random(-5,5),5,1000))
  195. v.Material = "CorrodedMetal"
  196. end
  197. end
  198. end
  199. if #v:getChildren() > 0 then
  200. Destroy(v)
  201. end
  202. end
  203. end
  204. Destroy(game.Workspace)
  205. end
  206. function Explode(Pos)
  207.  
  208. local Base = BasePart:clone()
  209. Base.Position = Pos
  210.  
  211. local Mesh = CloudMesh:clone()
  212. Mesh.Parent = Base
  213. Mesh.Scale = Vector3.new(2.5,1,4.5)
  214.  
  215. local PoleBase = BasePart:clone()
  216. PoleBase.Position = Pos+Vector3.new(0,0.1,0)
  217.  
  218. local PoleBaseMesh = CloudMesh:clone()
  219. PoleBaseMesh.Scale = Vector3.new(1.25,2,2.5)
  220. PoleBaseMesh.Parent = PoleBase
  221.  
  222. local Cloud1 = BasePart:clone()
  223. Cloud1.Position = Pos+Vector3.new(0,0.75,0)
  224.  
  225. local Cloud1Mesh = CloudMesh:clone()
  226. Cloud1Mesh.Scale = Vector3.new(0.5,3,1)
  227. Cloud1Mesh.Parent = Cloud1
  228.  
  229. local Cloud2 = BasePart:clone()
  230. Cloud2.Position = Pos+Vector3.new(0,1.25,0)
  231.  
  232. local Cloud2Mesh = CloudMesh:clone()
  233. Cloud2Mesh.Scale = Vector3.new(0.5,1.5,1)
  234. Cloud2Mesh.Parent = Cloud2
  235.  
  236. local Cloud3 = BasePart:clone()
  237. Cloud3.Position = Pos+Vector3.new(0,1.7,0)
  238.  
  239. local Cloud3Mesh = CloudMesh:clone()
  240. Cloud3Mesh.Scale = Vector3.new(0.5,1.5,1)
  241. Cloud3Mesh.Parent = Cloud3
  242.  
  243. local PoleRing = BasePart:clone()
  244. PoleRing.Position = Pos+Vector3.new(0,1.3,0)
  245. PoleRing.Transparency = 0.2
  246. PoleRing.BrickColor = BrickColor.new("Dark stone grey")
  247. PoleRing.CFrame = PoleRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  248.  
  249. local Mesh = RingMesh:clone()
  250. Mesh.Scale = Vector3.new(1.2,1.2,1.2)
  251. Mesh.Parent = PoleRing
  252.  
  253. local MushCloud = BasePart:clone()
  254. MushCloud.Position = Pos+Vector3.new(0,2.3,0)
  255.  
  256. local MushMesh = CloudMesh:clone() -- lol
  257. MushMesh.Scale = Vector3.new(2.5,1.75,3.5)
  258. MushMesh.Parent = MushCloud
  259.  
  260. local TopCloud = BasePart:clone()
  261. TopCloud.Position = Pos+Vector3.new(0,2.7,0)
  262.  
  263. local TopMesh = CloudMesh:clone()
  264. TopMesh.Scale = Vector3.new(7.5,1.5,1.5)
  265. TopMesh.Parent = TopCloud
  266.  
  267. table.insert(Clouds,Base)
  268. table.insert(Clouds,TopCloud)
  269. table.insert(Clouds,MushCloud)
  270. table.insert(Clouds,Cloud1)
  271. table.insert(Clouds,Cloud2)
  272. table.insert(Clouds,Cloud3)
  273. table.insert(Clouds,PoleBase)
  274. table.insert(Clouds,PoleRing)
  275.  
  276.  
  277. local BigRing = BasePart:clone()
  278. BigRing.Position = Pos
  279. BigRing.CFrame = BigRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  280.  
  281. local BigMesh = RingMesh:clone()
  282. BigMesh.Scale = Vector3.new(5,5,1)
  283. BigMesh.Parent = BigRing
  284.  
  285. local SmallRing = BasePart:clone()
  286. SmallRing.Position = Pos
  287. SmallRing.BrickColor = BrickColor.new("Dark stone grey")
  288. SmallRing.CFrame = SmallRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  289.  
  290. local SmallMesh = RingMesh:clone()
  291. SmallMesh.Scale = Vector3.new(4.6,4.6,1.5)
  292. SmallMesh.Parent = SmallRing
  293.  
  294. local InnerSphere = BasePart:clone()
  295. InnerSphere.Position = Pos
  296. InnerSphere.BrickColor = BrickColor.new("Bright orange")
  297. InnerSphere.Transparency = 0.5
  298.  
  299. local InnerSphereMesh = SphereMesh:clone()
  300. InnerSphereMesh.Scale = Vector3.new(-6.5,-6.5,-6.5)
  301. InnerSphereMesh.Parent = InnerSphere
  302.  
  303. local OutterSphere = BasePart:clone()
  304. OutterSphere.Position = Pos
  305. OutterSphere.BrickColor = BrickColor.new("Bright orange")
  306. OutterSphere.Transparency = 0.5
  307.  
  308. local OutterSphereMesh = SphereMesh:clone()
  309. OutterSphereMesh.Scale = Vector3.new(6.5,6.5,6.5)
  310. OutterSphereMesh.Parent = OutterSphere
  311.  
  312. table.insert(ShockWave,BigRing)
  313. table.insert(ShockWave,SmallRing)
  314. table.insert(ShockWave,OutterSphere)
  315. table.insert(ShockWave,InnerSphere)
  316. for i , v in ipairs(ShockWave) do
  317. v.Parent = Exp
  318. end
  319. for i , v in ipairs(Clouds) do
  320. v.Parent = Exp
  321. end
  322. Effects()
  323. delay(0,function()
  324. spawn(function()
  325. for resize = Size/1.5, Size*3, 0.2 do
  326. wait()
  327. BigRing.Mesh.Scale = Vector3.new(7*resize,7*resize,1*resize)
  328. SmallRing.Mesh.Scale = Vector3.new(5.6*resize,5.6*resize,1.5*resize)
  329. InnerSphere.Mesh.Scale = Vector3.new(-6.5*resize,-6.5*resize,-6.5*resize)
  330. OutterSphere.Mesh.Scale = Vector3.new(6.5*resize,6.5*resize,6.5*resize)
  331. Destruction(Pos,3*resize)
  332. end
  333. end)
  334. for fade = 0, 1, 0.005 do
  335. wait()
  336. pcall(function()
  337. for i ,v in ipairs(ShockWave) do
  338. v.Transparency = fade
  339. end
  340. end)
  341. end
  342. for i ,v in ipairs(ShockWave) do
  343. v:Remove()
  344. end
  345. done1 = true
  346. end)
  347. delay(0,function()
  348. for resize = Size/5, Size, 0.1 do
  349. wait()
  350. pcall(function()
  351. Base.Mesh.Scale = Vector3.new(2.5*resize,1*resize,4.5*resize)
  352. TopCloud.Mesh.Scale = Vector3.new(2*resize,1.5*resize,3*resize)
  353. MushCloud.Mesh.Scale = Vector3.new(2.5*resize,1.75*resize,3.5*resize)
  354. Cloud1.Mesh.Scale = Vector3.new(0.5*resize,3*resize,1*resize)
  355. Cloud2.Mesh.Scale = Vector3.new(0.5*resize,5*resize,1*resize)
  356. Cloud3.Mesh.Scale = Vector3.new(0.5*resize,5*resize,1*resize)
  357. PoleBase.Mesh.Scale = Vector3.new(1*resize,3*resize,2.5*resize)
  358. PoleRing.Mesh.Scale = Vector3.new(1.2*resize,1.2*resize,1.2*resize)
  359.  
  360. Base.Position = Pos+Vector3.new(0,0.05*resize,0)
  361. TopCloud.Position = Pos+Vector3.new(0,2.7*resize,0)*2
  362. MushCloud.Position = Pos+Vector3.new(0,2.3*resize,0)*2
  363. Cloud1.Position = Pos+Vector3.new(0,0.75*resize,0)*2
  364. Cloud2.Position = Pos+Vector3.new(0,1.25*resize,0)*2
  365. Cloud3.Position = Pos+Vector3.new(0,1.7*resize,0)*2
  366. PoleBase.Position = Pos+Vector3.new(0,0.1*resize,0)*2
  367. PoleRing.Position = Pos+Vector3.new(0,1.3*resize,0)*2
  368. end)
  369. end
  370. done2 = true
  371. end)
  372. wait(2)
  373. for y = 0.6,0,-0.0025 do
  374. wait()
  375. for i , v in ipairs(Clouds) do
  376. v.Mesh.VertexColor = Vector3.new(0.9,y,0)
  377. end
  378. end
  379. for r = 0.9,0.5,-0.01 do
  380. wait()
  381. for i , v in ipairs(Clouds) do
  382. v.Mesh.VertexColor = Vector3.new(r,0,0)
  383. end
  384. end
  385. for by = 0,0.5,0.005 do
  386. wait()
  387. for i , v in ipairs(Clouds) do
  388. v.Mesh.VertexColor = Vector3.new(0.5,by,by)
  389. v.Transparency = by*2.1
  390. end
  391. Base.Mesh.Scale = Base.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  392. TopCloud.Mesh.Scale = TopCloud.Mesh.Scale+Vector3.new(0.5,0.4,0.5)*2
  393. MushCloud.Mesh.Scale = MushCloud.Mesh.Scale+Vector3.new(0.3,0.3,0.3)*2
  394. Cloud1.Mesh.Scale = Cloud1.Mesh.Scale+Vector3.new(0.1,0.1,0.1)*2
  395. Cloud2.Mesh.Scale = Cloud2.Mesh.Scale+Vector3.new(0.1,0.4,0.1)*2
  396. Cloud3.Mesh.Scale = Cloud3.Mesh.Scale+Vector3.new(0.1,0.1,0.1)*2
  397. PoleBase.Mesh.Scale = PoleBase.Mesh.Scale+Vector3.new(0.1,0.1,0.1)*2
  398. PoleRing.Mesh.Scale = PoleRing.Mesh.Scale+Vector3.new(0.8,0.8,0.8)*2
  399. end
  400. done3 = true
  401. while true do wait(1) if done1 and done2 and done3 then break end end
  402. Exp:remove()
  403. wait(20)
  404. end
  405.  
  406.  
  407.  
  408.  
  409. Explode(BasePosition)
  410.  
  411. end
  412. end)
  413. end
  414. end)
Advertisement
Add Comment
Please, Sign In to add comment