Tool = Instance.new("Tool") Tool.Name = "Sword" LastAttack = 0 Knife = Instance.new("Part") Knife.Name = "Handle" Knife.Parent = Tool Tool.Parent = owner.Character Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) Tool.GripUp = Vector3.new(0, 0, 1.5, 0, 0, -1, -1, 0, 0, 0, -1, 0) Tool.GripPos = Vector3.new(0,0,-1.5) Mesh = Instance.new("SpecialMesh") Knife.Size = Vector3.new(2, 1, 4) Mesh.Parent = Knife Mesh.MeshId = "http://www.roblox.com/asset/?id=12221720" Mesh.TextureId = "http://www.roblox.com/asset/?id=12224218" Mesh.Scale = Vector3.new(1, 1, 1) myhum = owner.Character.Humanoid local stab = Instance.new("Sound", owner.character.Head) stab.SoundId = "rbxassetid://12222216" stab.Volume = 1 local equipped = Instance.new("Sound", owner.character.Head) equipped.SoundId = "rbxassetid://12222225" equipped.Volume = 1 local Lunge = Instance.new("Sound", owner.character.Head) Lunge.SoundId = "rbxassetid://12222208" Lunge.Volume = 1 candamage = false islunging = false Tool.Activated:connect(function() local Tick = game:GetService("RunService").Stepped:wait() if (Tick - LastAttack) < .5 then coroutine.wrap(function() islunging = true Lunge:Stop() Lunge:Play() Tool.Grip = CFrame.Angles(0,math.rad(180),math.rad(90)) Tool.GripPos = Vector3.new(0,0,-1.75) local Anim = Instance.new("StringValue") Anim.Name = "toolanim" Anim.Value = "Lunge" Anim.Parent = Tool wait(0.25) islunging = false wait(0.40) Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) Tool.GripPos = Vector3.new(0,0,-1.5) end)() else coroutine.wrap(function() stab:Stop() stab:Play() local Anim = Instance.new("StringValue") Anim.Name = "toolanim" Anim.Value = "Slash" Anim.Parent = Tool candamage = true wait(0.5) candamage = false end)() end LastAttack = Tick end) Tool.Equipped:Connect(function() equipped:Play() end) local isTouched = false local function damagePlayer(otherPart) if candamage and not islunging then local partParent = otherPart.Parent local humanoid = partParent:FindFirstChildWhichIsA("Humanoid") if humanoid ~= "myhum" and humanoid then if not isTouched then isTouched = true if humanoid.Health ~= 0 then humanoid.Health = humanoid.Health - 10 wait(0.40) isTouched = false end end end end end local function lungelol(otherPart3) if islunging and not candamage then local partParent3 = otherPart3.Parent local humanoid = partParent3:FindFirstChildWhichIsA("Humanoid") if humanoid ~= "myhum" and humanoid then if humanoid.Health ~= 0 then humanoid.Health = humanoid.Health - 20 end end end end local function tapped(otherPart2) if not islunging and not candamage then local partParent2 = otherPart2.Parent local humanoid = partParent2:FindFirstChildWhichIsA("Humanoid") if humanoid ~= "myhum" and humanoid then if not isTouched then isTouched = true if humanoid.Health ~= 0 then humanoid.Health = humanoid.Health - 5 wait(0.1) isTouched = false end end end end end Knife.Touched:Connect(lungelol) Knife.Touched:Connect(damagePlayer) Knife.Touched:Connect(tapped)