Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- by Theamazingnater
- plr = game.Players.LocalPlayer
- char = plr.Character
- -- Sword
- local human2 = Instance.new("Weld",char.HumanoidRootPart)
- human2.Part0 = char["HumanoidRootPart"]
- human2.Part1 = char.Torso
- local sword = Instance.new("Part",char)
- sword.Size = Vector3.new(1, 0.8, 4)
- sword.CanCollide = false
- local mesh = Instance.new("FileMesh",sword)
- mesh.MeshId = "rbxasset://fonts/10470609"
- mesh.TextureId = "rbxasset://textures/10470609"
- local weld = Instance.new("Weld",sword)
- weld.Part0 = sword
- weld.Part1 = char["Right Arm"]
- weld.C0 = CFrame.new(1, 0, -1.5, 0, 0.999999762, 0, 1, 0, 0, 0, 0, -1)
- local weld2 = Instance.new("Weld",char)
- weld2.Part0 = char.Torso
- weld2.Part1 = char["Right Arm"]
- weld2.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- for i = 0,1 ,0.03 do
- weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0.515185118, -0.503331184, 1, 0, 0, 0, 0.00918695424, -0.999952853, 0, 0.99995786, 0.00918699894),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- using = false
- local slash = Instance.new("Sound",sword)
- slash.SoundId = "rbxasset://sounds/1542642349/"
- slash.Volume = 4
- mouse = plr:GetMouse()
- function Ragdoll(dude)
- local humanoid = dude:FindFirstChildOfClass("Humanoid")
- dude:BreakJoints()
- local isr15 = dude:findFirstChild("UpperTorso")
- if isr15 then
- if humanoid.Parent:findFirstChild("HumanoidRootPart") then
- humanoid.Parent.HumanoidRootPart.CanCollide = false
- end
- local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
- local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
- constraint.Attachment0 = attachone
- constraint.Attachment1 = attachtwo
- constraint.LimitsEnabled = true
- constraint.TwistLimitsEnabled = true
- constraint.TwistLowerAngle = lowang
- constraint.TwistUpperAngle = upperang
- constraint.UpperAngle = twist
- end
- local function makehingelimb(attachone, attachtwo, upperang, lowang)
- local constraint = Instance.new("HingeConstraint", humanoid.Parent)
- constraint.Attachment0 = attachone
- constraint.Attachment1 = attachtwo
- constraint.LimitsEnabled = true
- constraint.LowerAngle = lowang
- constraint.UpperAngle = upperang
- end
- for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
- if v.ClassName == "Accessory" then
- local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
- if findhandle then
- local attach = findhandle:findFirstChildOfClass("Attachment")
- for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
- if w.Name == "UpperTorso" or w.Name == "Head" then
- attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
- end
- end
- if attach and attach1 then
- local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
- constraint.Attachment0 = attach
- constraint.Attachment1 = attach1
- constraint.LimitsEnabled = true
- constraint.LowerAngle = 0
- constraint.UpperAngle = 0
- end
- end
- end
- end
- if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
- local attachment = Instance.new("Attachment", humanoid.Parent.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
- humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 40
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 40
- ball.TwistLowerAngle = -40
- local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = humanoid.Parent["Head"]
- if humanoid.Parent.Head:findFirstChild("Neck") then
- humanoid.Parent.Head.Neck:destroy()
- end
- if humanoid.Parent.Head:findFirstChild("face") then
- humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=459924806"
- end
- end
- local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
- local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
- --
- local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
- local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
- --
- local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
- local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
- --
- local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
- local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
- --Foot & Hands--
- local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
- local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
- --
- local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
- local RightHand = humanoid.Parent:findFirstChild("RightHand")
- --END--
- --TORSOS--
- local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
- local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
- --END--
- if LowerTorso then
- if LeftUpperLeg then
- makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
- end
- if RightUpperLeg then
- makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
- end
- if LeftLowerLeg then
- makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
- end
- if RightLowerLeg then
- makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
- end
- if LeftFoot then
- makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
- end
- if RightFoot then
- makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
- end
- if UpperTorso then
- makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
- end
- end
- if UpperTorso then
- local hitsound = Instance.new("Sound", UpperTorso)
- hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
- hitsound:Play()
- hitsound.Volume = math.random(5,10)
- local canhit = true
- local hitval = 15
- local uptor = humanoid.Parent.UpperTorso
- if RightUpperArm then
- makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
- end
- if RightLowerArm then
- makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
- end
- if RightHand then
- makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
- end
- if LeftUpperArm then
- makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
- end
- if LeftLowerArm then
- makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
- end
- if LeftHand then
- makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
- end
- end
- elseif dude:findFirstChild("Torso") then
- canspin = false
- if humanoid.Parent:findFirstChild("Health") then
- humanoid.Parent.Health:Remove()
- end
- humanoid.WalkSpeed = 0
- humanoid.JumpPower = 0
- humanoid.PlatformStand = true
- for z,x in pairs(humanoid.Parent:GetChildren()) do
- if x.ClassName == "Accessory" then
- local handle = x:findFirstChild("Handle")
- if handle then
- local attachment = handle:findFirstChildOfClass("Attachment")
- if attachment then
- for q,w in pairs(humanoid.Parent:GetChildren()) do
- if w.Name == "Torso" or w.Name == "Head" then
- local anotherone = w:findFirstChild(attachment.Name)
- if attachment and anotherone then
- local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
- constraint.Attachment0 = attachment
- constraint.Attachment1 = anotherone
- constraint.LimitsEnabled = true
- constraint.LowerAngle = 0
- constraint.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- end
- if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
- local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
- attachment.Position = Vector3.new(1, 1, 0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
- ball.Attachment1 = attachment
- collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = humanoid.Parent["Right Arm"]
- weeld.Part1 = collidepartofleftleg
- weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
- end
- if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
- local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
- attachment.Position = Vector3.new(-1, 1, 0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = attachment
- ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
- collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = humanoid.Parent["Left Arm"]
- weeld.Part1 = collidepartofleftleg
- weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
- end
- if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
- local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
- attachment.Position = Vector3.new(0.5, -1, 0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
- ball.Attachment1 = attachment
- humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
- collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = humanoid.Parent["Right Leg"]
- weeld.Part1 = collidepartofleftleg
- weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
- end
- if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
- local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
- attachment.Position = Vector3.new(-0.5, -1, 0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
- ball.Attachment1 = attachment
- humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
- collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = humanoid.Parent["Left Leg"]
- weeld.Part1 = collidepartofleftleg
- weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
- end
- if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
- local attachment = Instance.new("Attachment", humanoid.Parent.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 90
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 90
- ball.TwistLowerAngle = -90
- local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = humanoid.Parent["Head"]
- if humanoid.Parent.Torso:findFirstChild("Neck") then
- humanoid.Parent.Torso.Neck:destroy()
- end
- if humanoid.Parent.Head:findFirstChild("face") then
- humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
- end
- local hitsound = Instance.new("Sound", humanoid.Parent.Head)
- hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
- hitsound:Play()
- hitsound.Volume = math.random(5,10)
- end
- if humanoid.Parent:findFirstChild("Head") then
- local aah = Instance.new("Sound", humanoid.Parent.Head)
- if aah then
- aah.Volume = 8
- local aahmath = math.random(2,8)
- if aahmath == 2 then
- aah.SoundId = "rbxassetid://884348443"
- aah:Play()
- end
- if aahmath == 3 then
- aah.SoundId = "rbxassetid://681582832"
- aah.Volume = 10
- aah:Play()
- end
- if aahmath == 4 then
- aah.SoundId = "rbxassetid://1080363252"
- aah:Play()
- end
- if aahmath == 5 then
- aah.SoundId = "rbxassetid://150245085"
- aah:Play()
- end
- if aahmath == 6 then
- aah.SoundId = "rbxassetid://345287845"
- aah.TimePosition = 2.5
- aah:Play()
- end
- if aahmath == 7 then
- aah.SoundId = "rbxassetid://147758746"
- aah.TimePosition = 1.3
- aah:Play()
- end
- if aahmath == 8 then
- aah.SoundId = "rbxassetid://131314452"
- aah:Play()
- end
- end
- end
- end
- end
- function Slash()
- if not using then
- using = true
- for i = 0,1 ,0.05 do
- weld2.C0 = weld2.C0:lerp(CFrame.new(1.11415493, 0.306964874, -0.55814743, 0.726371348, 0.0421499684, 0.686008811, 0.682991326, 0.0673519522, -0.727314591, -0.0768603459, 0.996838272, 0.0201344695),i)
- human2.C0 = human2.C0:lerp(CFrame.new(0, 2.38418579e-07, 0, 0.685707927, 0, 0.727876961, 0, 1, 0, -0.727876961, 0, 0.685707927),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- wait(1)
- slash:Play()
- local hit = Instance.new("Part",sword)
- hit.Size = Vector3.new(0.46, 0.8, 2.02)
- hit.Transparency = 1
- local weld3 = Instance.new("Weld",hit)
- weld3.Part0 = hit
- weld3.Part1 = sword
- weld3.C0 = CFrame.new(-0.0100011826, 9.53674316e-07, -1.24000645, 0.999999106, 0, 0, 0, 1, 0, 0, 0, 1.00000012)
- hit.Touched:connect(function(part)
- local human = part.Parent:FindFirstChildOfClass("Humanoid")
- if human then
- Ragdoll(human.Parent)
- human.Health = 0
- end
- end)
- for i = 0,1 ,0.05 do
- weld2.C0 = weld2.C0:lerp(CFrame.new(1.41310668, -0.12503624, 0.230521202, 0.644262314, -0.558189869, -0.522828877, 0.287161112, 0.810144842, -0.511080801, 0.708847344, 0.179133952, 0.682236373),i)
- human2.C0 = human2.C0:lerp(CFrame.new(0, 2.38418579e-07, 0, 0.685707927, 0, 0.727876961, 0, 1, 0, -0.727876961, 0, 0.685707927):inverse(),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- hit:Destroy()
- using = false
- for i = 0,1 ,0.03 do
- weld2.C0 = weld2.C0:lerp(CFrame.new(1.5, 0.515185118, -0.503331184, 1, 0, 0, 0, 0.00918695424, -0.999952853, 0, 0.99995786, 0.00918699894),i)
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- end
- mouse.Button1Down:connect(Slash)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement