Advertisement
moathon

Ultimate Attack for script builders

Jul 20th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.05 KB | None | 0 0
  1. --YOU MUST BE R15 FOR THIS GEAR TO WORK!!
  2. --Otherwise, Replace all lines that say LowerTorso with just Torso instead. The script will not work for you if you do not do this.
  3. --Replace firemomo45 with your name
  4. local player = game.Workspace.firemomo45
  5. local Tool = Instance.new("Tool",player)
  6. Tool.Name = "SuperSlamNukeAttack"
  7. Tool.Parent = player
  8. Tool.TextureId = "rbxassetid://77829200"
  9. local Ball = Instance.new("Part",Tool)
  10. Ball.Name = "Handle"
  11. Ball.BrickColor = BrickColor.White()
  12. Ball.Material = 272
  13. Ball.Reflectance = 0.1
  14. Ball.Transparency = 0.5
  15. Ball.Size = Vector3.new(2,2,2)
  16. Ball.Shape = 0
  17. local Boing = Instance.new("Sound",Ball)
  18. Boing.Name = "Boing"
  19. Boing.SoundId = "rbxassetid://165969964"
  20. Boing.Volume = 1
  21. local Charge = Instance.new("Sound",Ball)
  22. Charge.Name = "Charge"
  23. Charge.Volume = 1
  24. local Part1 = Instance.new("ParticleEmitter",Ball)
  25. Part1.Name = "P1"
  26. local color1 = Color3.new(248,248,248)
  27. local color2 = Color3.new(85,255,255)
  28. Part1.Color = ColorSequence.new(color1,color2)
  29. Part1.LightEmission = 1
  30. Part1.LightInfluence = 1
  31. Part1.Size = NumberSequence.new(40)
  32. local z1 = 0
  33. Part1.Transparency = NumberSequence.new(z1)
  34. Part1.Enabled = false
  35. Part1.Lifetime = NumberRange.new(3)
  36. Part1.Rate = 60
  37. Part1.RotSpeed = NumberRange.new(30)
  38. Part1.Speed = NumberRange.new(20)
  39. Part1.SpreadAngle = Vector2.new(360,360)
  40.  
  41. local Part2 = Instance.new("ParticleEmitter",Ball)
  42. Part2.Name = "P2"
  43. local color1 = Color3.new(255,255,255)
  44. Part2.Color = ColorSequence.new(color1,color1)
  45. Part2.LightEmission = 0
  46. Part2.LightInfluence = 1
  47. Part2.Size = NumberSequence.new(40)
  48. local n1 = 0.5
  49. Part2.Transparency = NumberSequence.new(n1)
  50. Part2.Enabled = false
  51. Part2.Lifetime = NumberRange.new(10)
  52. Part2.ZOffset = -1
  53. Part2.Rate = 50
  54. Part2.RotSpeed = NumberRange.new(0)
  55. Part2.Speed = NumberRange.new(50)
  56. Part2.SpreadAngle = Vector2.new(100,100)
  57. Part2.Texture = "rbxassetid://249338959"
  58.  
  59. local Part3 = Instance.new("ParticleEmitter",Ball)
  60. Part3.Name = "P3"
  61. local color1 = Color3.new(85,255,255)
  62. Part3.Color = ColorSequence.new(color1,color1)
  63. Part3.LightEmission = 1
  64. Part3.LightInfluence = 2
  65. Part3.Size = NumberSequence.new(2)
  66. local m1 = 0
  67. local n2 = 1
  68. Part3.Transparency = NumberSequence.new(m1,n2)
  69. Part3.Enabled = false
  70. Part3.Lifetime = NumberRange.new(5)
  71. Part3.ZOffset = -1
  72. Part3.Rate = 10
  73. Part3.RotSpeed = NumberRange.new(60)
  74. Part3.Speed = NumberRange.new(0)
  75. Part3.SpreadAngle = Vector2.new(0,0)
  76.  
  77. local Part4 = Instance.new("ParticleEmitter",Ball)
  78. Part4.Name = "P4"
  79. local color1 = Color3.new(141,96,44)
  80. Part4.Color = ColorSequence.new(color1,color1)
  81. Part4.LightEmission = 0
  82. Part4.LightInfluence = 1
  83. Part4.Size = NumberSequence.new(4)
  84. local f1 = 0
  85. local f2 = 1
  86. Part4.Transparency = NumberSequence.new(f1,f2)
  87. Part4.Enabled = false
  88. Part4.Lifetime = NumberRange.new(5)
  89. Part4.ZOffset = -1
  90. Part4.Rate = 50
  91. local k1 = 0
  92. local k2 = 360
  93. local k3 = 100
  94. Part4.RotSpeed = NumberRange.new(k1,k3)
  95. Part4.Rotation = NumberRange.new(k1,k2)
  96. Part4.Speed = NumberRange.new(100)
  97. Part4.Acceleration = Vector3.new(0,-40,0)
  98. Part4.SpreadAngle = Vector2.new(100,100)
  99. Part4.Texture = "rbxassetid://281634786"
  100. local Light = Instance.new("PointLight",Ball)
  101. Light.Brightness = 23423
  102. Light.Range = 10
  103. Light.Enabled = false
  104. --Part 2 of this script
  105.  
  106. function fire(direction)
  107. local Human = Tool.Parent:FindFirstChildOfClass("Humanoid")
  108.  
  109. Human.JumpPower = 200
  110. Human.Jump = true
  111. wait(1)
  112. Tool.Parent.LowerTorso.Anchored = true
  113. local animation = Instance.new("Animation")
  114. animation.AnimationId = "http://www.roblox.com/Asset?ID=927440027"
  115. local animTrack = Human:LoadAnimation(animation)
  116. animTrack:Play()
  117. Ball.Charge:Play()
  118. Ball.Transparency = .5
  119. Ball.P3.Enabled = true
  120. Ball.PointLight.Enabled = true
  121. wait(2)
  122. Ball.Transparency = 1
  123. Ball.P3.Enabled = false
  124. Ball.PointLight.Enabled = false
  125. local vCharacter = Tool.Parent
  126.  
  127. local missile = Instance.new("Part")
  128.  
  129. local spawnPos = vCharacter.PrimaryPart.Position
  130.  
  131. spawnPos = spawnPos + (direction * 5)
  132.  
  133. missile.Position = spawnPos
  134. missile.Size = Vector3.new(2,2,2)
  135. missile.Velocity = Vector3.new(0,-100,0)
  136. missile.BrickColor = BrickColor.White()
  137. missile.Shape = 0
  138. missile.BottomSurface = 0
  139. missile.TopSurface = 0
  140. missile.Name = "Cannon Shot"
  141. missile.Elasticity = 1
  142. missile.Reflectance = .1
  143. missile.Friction = 0
  144. missile.Transparency = 0.5
  145.  
  146. Tool.Handle.Boing:clone().Parent = missile
  147. Tool.Handle.P1:clone().Parent = missile
  148. Tool.Handle.P2:clone().Parent = missile
  149. Tool.Handle.P3:clone().Parent = missile
  150. Tool.Handle.P4:clone().Parent = missile
  151.  
  152. local creator_tag = Instance.new("ObjectValue")
  153. creator_tag.Name = "creator"
  154. creator_tag.Parent = missile
  155.  
  156. missile.Parent = game.Workspace
  157. wait(1)
  158. Tool.Parent.LowerTorso.Anchored = false
  159. Human.JumpPower = 50
  160. --Put what you need here
  161.  
  162.  
  163.  
  164. connection = missile.Touched:connect(function(hit)
  165. local damage = 2500
  166. missile.P3.Enabled = true
  167. local r = game:service("RunService")
  168. local debris = game:GetService("Debris")
  169. local alreadytouched = false
  170.  
  171. if alreadytouched == false then
  172. alreadytouched = true
  173. if hit.Parent == nil then return end
  174. Ball.Boing:play()
  175. missile.Anchored = true
  176. missile.Orientation = Vector3.new(-0.05, -90, -0.02)
  177. local explosion = Instance.new("Explosion")
  178. explosion.DestroyJointRadiusPercent = 0
  179. explosion.BlastRadius = 50
  180. explosion.BlastPressure = 10000
  181. explosion.Position = missile.Position
  182. explosion.Parent = game.Workspace
  183. explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
  184. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  185. if humanoid ~=nil then
  186. tagHumanoid(humanoid)
  187. humanoid:TakeDamage(damage)
  188. if connection then connection:disconnect() end
  189. else
  190. damage = damage / 2
  191. if damage < 2 then
  192. if connection then connection:disconnect() end
  193. end
  194. end
  195. missile.Transparency = 1
  196. missile.P1.Enabled = true
  197. missile.P2.Enabled = true
  198. missile.P3.Enabled = false
  199. missile.P4.Enabled = true
  200. wait(3)
  201. missile.P1.Enabled = false
  202. missile.P2.Enabled = false
  203. missile.P4.Enabled = false
  204. wait(10)
  205. missile.Parent = nil
  206. end
  207. function onPlayerBlownUp(part, distance, creator)
  208.  
  209. local humanoid = part.Parent:FindFirstChildOfClass("Humanoid")
  210. if humanoid ~= nil then
  211. humanoid:TakeDamage(1500)
  212. end
  213. tagHumanoid(humanoid, creator)
  214. end
  215. function tagHumanoid(humanoid)
  216. local tag = missile:findFirstChild("creator")
  217. if tag ~= nil then
  218. local new_tag = tag:clone()
  219. new_tag.Parent = humanoid
  220. debris:AddItem(new_tag, 2)
  221. end
  222. end
  223. end)
  224.  
  225. ------------------------
  226. end
  227.  
  228.  
  229.  
  230. Tool.Enabled = true
  231. function onActivated()
  232. if not Tool.Enabled then
  233. return
  234. end
  235. Tool.Enabled = false
  236. local character = Tool.Parent;
  237. local humanoid = character.Humanoid
  238. if humanoid == nil then
  239. print("Humanoid not found")
  240. return
  241. end
  242. local targetPos = humanoid.TargetPoint
  243. local lookAt = (targetPos - character.Head.Position).unit
  244. fire(lookAt)
  245. wait(10)
  246. Tool.Enabled = true
  247. end
  248.  
  249.  
  250. Tool.Activated:connect(onActivated)
  251. Tool.Equipped:connect(function()
  252. Tool.Handle.Transparency = 1
  253. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement