Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lp = game.Players.LocalPlayer
- local chr = lp.Character
- --Handles weld--
- local weld = function(p0,p1,x,y,z,ax,ay,az)
- p0.Position=p1.Position
- local w = Instance.new("Motor",p0)
- w.Part0=p0
- w.Part1=p1
- w.C0=CFrame.new(x,y,z)*CFrame.Angles(ax,ay,az)
- end
- --Handle--
- local part = Instance.new("Part",chr)
- part.CanCollide=false
- part.FormFactor="Custom"
- part.Material="SmoothPlastic"
- part.Size = Vector3.new(.5,.5,1)
- part.BrickColor=BrickColor.new("Lime green")
- weld(part,chr['Right Arm'],0,.5,.5,0,0,0)
- --Blades weld--
- local Blade = function(p0,p1,x,y,z,bx,by,bz)
- p0.Position=p1.Position
- local w = Instance.new("Motor",p0)
- w.Part0=p0
- w.Part1=p1
- w.C0=CFrame.new(x,y,z)*CFrame.Angles(bx,by,bz)
- end
- --Blade--
- local part = Instance.new("Part",chr)
- part.CanCollide=false
- part.FormFactor="Custom"
- part.Size = Vector3.new(.2,.5,1)
- part.BrickColor=BrickColor.new("White")
- Blade(part,chr['Right Arm'],0,.5,1.5,0,0,0)
- --Blade tip weld--
- local Tip = function(p0,p1,x,y,z,tx,ty,tz)
- p0.Position=p1.Position
- local w = Instance.new("Motor",p0)
- w.Part0=p0
- w.Part1=p1
- w.C0=CFrame.new(x,y,z)*CFrame.Angles(tx,ty,tz)
- end
- --Blade tip--
- local part = Instance.new("WedgePart",chr)
- part.CanCollide=false
- part.FormFactor="Custom"
- part.Size = Vector3.new(.2,.5,.4)
- part.BrickColor=BrickColor.new("White")
- Tip(part,chr['Right Arm'],0,.5,2.2,0,0,0)
- function OnTouch(part)
- Humanoid = part.Parent:findFirstChild("Humanoid")
- if Humanoid then
- Humanoid.Health = 0
- end
- end
- chr.Torso.Touched:connect(OnTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement