Advertisement
Guest User

Lol

a guest
Feb 27th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. local lp = game.Players.LocalPlayer
  2. local chr = lp.Character
  3.  
  4.  
  5. --Handles weld--
  6. local weld = function(p0,p1,x,y,z,ax,ay,az)
  7. p0.Position=p1.Position
  8. local w = Instance.new("Motor",p0)
  9. w.Part0=p0
  10. w.Part1=p1
  11. w.C0=CFrame.new(x,y,z)*CFrame.Angles(ax,ay,az)
  12. end
  13.  
  14. --Handle--
  15. local part = Instance.new("Part",chr)
  16. part.CanCollide=false
  17. part.FormFactor="Custom"
  18. part.Material="SmoothPlastic"
  19. part.Size = Vector3.new(.5,.5,1)
  20. part.BrickColor=BrickColor.new("Lime green")
  21. weld(part,chr['Right Arm'],0,.5,.5,0,0,0)
  22.  
  23. --Blades weld--
  24. local Blade = function(p0,p1,x,y,z,bx,by,bz)
  25. p0.Position=p1.Position
  26. local w = Instance.new("Motor",p0)
  27. w.Part0=p0
  28. w.Part1=p1
  29. w.C0=CFrame.new(x,y,z)*CFrame.Angles(bx,by,bz)
  30. end
  31.  
  32. --Blade--
  33. local part = Instance.new("Part",chr)
  34. part.CanCollide=false
  35. part.FormFactor="Custom"
  36. part.Size = Vector3.new(.2,.5,1)
  37. part.BrickColor=BrickColor.new("White")
  38. Blade(part,chr['Right Arm'],0,.5,1.5,0,0,0)
  39.  
  40.  
  41. --Blade tip weld--
  42. local Tip = function(p0,p1,x,y,z,tx,ty,tz)
  43. p0.Position=p1.Position
  44. local w = Instance.new("Motor",p0)
  45. w.Part0=p0
  46. w.Part1=p1
  47. w.C0=CFrame.new(x,y,z)*CFrame.Angles(tx,ty,tz)
  48. end
  49.  
  50.  
  51. --Blade tip--
  52. local part = Instance.new("WedgePart",chr)
  53. part.CanCollide=false
  54. part.FormFactor="Custom"
  55. part.Size = Vector3.new(.2,.5,.4)
  56. part.BrickColor=BrickColor.new("White")
  57. Tip(part,chr['Right Arm'],0,.5,2.2,0,0,0)
  58.  
  59.  
  60. function OnTouch(part)
  61. Humanoid = part.Parent:findFirstChild("Humanoid")
  62. if Humanoid then
  63. Humanoid.Health = 0
  64. end
  65. end
  66. chr.Torso.Touched:connect(OnTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement