clubstar54

Kamehameha

Nov 29th, 2023 (edited)
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. local char = script.Parent.Parent.Character
  2. local Tool = Instance.new("Tool")
  3. Tool.Name = "Kamehameha"
  4. Tool.RequiresHandle = false
  5.  
  6. local p = Instance.new("Part")
  7. p.Material = "Neon"
  8. p.Anchored = false
  9. p.CanCollide = false
  10. p.BrickColor = BrickColor.new("Bright blue")
  11. p.Size = Vector3.new(3,3,3)
  12. local mesh = Instance.new("SpecialMesh")
  13. mesh.MeshType = "Cylinder"
  14. mesh.Parent = p
  15. local v = Instance.new("BodyVelocity")
  16. v.MaxForce = Vector3.new(0,80000,0)
  17. v.Velocity = Vector3.new(0,0,0)
  18. v.Parent = p
  19.  
  20. local Go = false
  21. Tool.Activated:connect(function()
  22. if Go then return end
  23. Go = true
  24.  
  25. local beam = p:Clone()
  26. beam.CFrame = Tool.Parent.HumanoidRootPart.CFrame*CFrame.new(0,0,-3)*CFrame.Angles(0,math.rad(90),0)
  27. beam.Parent = workspace
  28.  
  29. local debounce = false
  30. beam.Touched:connect(function(hit)
  31. if hit.Parent:findFirstChild("Humanoid") and hit.Parent ~= char then
  32. if debounce then return end
  33. hit.Parent.Humanoid:TakeDamage(9)
  34. debounce = true
  35. task.wait(0.2)
  36. debounce = false
  37. end
  38. end)
  39.  
  40. local goal = {}
  41. goal.CFrame = beam.CFrame * CFrame.new(50,0,0)
  42. goal.Size = beam.Size + Vector3.new(3001,1)
  43.  
  44. local info = TweenInfo.new(2, Enum.EasingStyle.Linear)
  45. local tween = game:GetService("TweenService"):Create(beam,info,goal)
  46. tween:Play()
  47. tween.Completed:connect(function()
  48. beam:Destroy()
  49. end)
  50.  
  51. wait(3)
  52. Go = false
  53. end)
  54. Tool.Parent = char
Advertisement
Add Comment
Please, Sign In to add comment