Advertisement
sIendytubble

nuke

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