potatinha

roblox nuke

Sep 8th, 2017
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. for i,v in pairs (game.Workspace:GetChildren()) do
  2. if v.Name == "Nuke" then
  3. explosion2 = Instance.new("Explosion")
  4. v:Destroy()
  5. end
  6. end
  7. wait(1)
  8. local Tool = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  9. Tool.Name = "Detonater"
  10. local Mouse = game.Players.LocalPlayer:GetMouse()
  11.  
  12. local Place = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  13. Place.Name = "Placer"
  14. Nuke = Instance.new("Model")
  15. Nuke.Parent = game.Workspace
  16. Nuke.Name = "Nuke"
  17.  
  18. x5 = 1
  19. Mouse.Button1Down:connect(function()
  20. if x5 == 1 then
  21. if Place.Active == true then
  22. local name = game.Players.LocalPlayer.Name
  23. local Part1 = Instance.new("Part")
  24. Part1.Name = "Part"
  25. Part1.Parent = Nuke
  26. Part1.Size = Vector3.new(12,1,6)
  27. Part1.Position = Mouse.Hit.p
  28. Part1.BottomSurface = "Smooth"
  29. Part1.TopSurface = "Smooth"
  30. Part1.Material = "Metal"
  31. Part1.BrickColor = BrickColor.new("Really black")
  32. Part1.Anchored = true
  33. local x1 = game.Workspace.Nuke.Part.Position.X
  34. local y1 = game.Workspace.Nuke.Part.Position.Y
  35. local z1 = game.Workspace.Nuke.Part.Position.Z
  36. local Part2 = Instance.new("Part")
  37. Part2.Name = "Detonate"
  38. Part2.Parent = Nuke
  39. Part2.Size = Vector3.new(10, 5, 5)
  40. Part2.Position = Vector3.new(x1,y1+2,z1)
  41. Part2.BottomSurface = "Smooth"
  42. Part2.TopSurface = "Smooth"
  43. Part2.Material = "Metal"
  44. Part2.BrickColor = BrickColor.new("Really black")
  45. Part2.Anchored = true
  46. Part2.Shape = "Cylinder"
  47. x5 = x5+1
  48. local Decal = Instance.new("Decal")
  49. Decal.Texture = "http://www.roblox.com/asset/?id=14301975"
  50. Decal.Parent = Part2
  51. Decal.Face = "Back"
  52. end
  53. end
  54. end)
  55.  
  56.  
  57. Mouse.Button1Down:connect(function()
  58. if Tool.Active == true then
  59. local nuke = Instance.new("Part")
  60. so = Instance.new("Sound", nuke)
  61. so.SoundId = "rbxassetid://209632668"
  62. s0 = Instance.new("DistortionSoundEffect", so)
  63. s0.Level = 1
  64. so:Play()
  65. nuke.Position = game.Workspace.Nuke.Detonate.Position
  66. nuke.Anchored = true
  67. nuke.Parent = game.Workspace
  68. local x, y, z = 5, 5, 5
  69. nuke.BrickColor = BrickColor.new ("New Yeller")
  70. nuke.Size = Vector3.new(x, y, z)
  71. nuke.CanCollide = true
  72. nuke.Name = "nuke"
  73. nuke.Shape = "Ball"
  74. nuke.Transparency = 0.3
  75. nuke.Material = "Neon"
  76. nuke.Locked = true
  77. game.Workspace.Nuke:Destroy()
  78. while x <= 200 do
  79. x, y, z = x+1, y+1, z+1
  80. nuke.Size = Vector3.new(x, y, z)
  81. nuke.Touched:connect(function(hit)
  82. human = hit:remove()
  83. end)
  84. local explosion = Instance.new("Model",game.TestService)
  85. if nuke.Name ~= "nuke" then
  86. Part.Anchored = false
  87. Part:BreakJoints()
  88. end
  89. wait(0.01)
  90. end
  91. while x <= 500 do
  92. x, y, z = x+3, y+3, z+3
  93. nuke.Size = Vector3.new(x, y, z)
  94. nuke.Touched:connect(function(hit)
  95. human = hit:remove()
  96. human:remove()
  97. end)
  98. local explosion = Instance.new("Model",game.TestService)
  99. if nuke.Name ~= "nuke" then
  100. Part.Anchored = false
  101. Part:BreakJoints()
  102. end
  103. wait(0.01)
  104. end
  105. nuke.Touched:connect(function(hit)
  106. human = hit.Parent.Humanoid
  107. human:remove()
  108. end)
  109.  
  110. x5 = 1
  111. Nuke = Instance.new("Model")
  112. Nuke.Parent = game.Workspace
  113. Nuke.Name = "Nuke"
  114. Tool.Active = false
  115. end
  116. end)
Add Comment
Please, Sign In to add comment