function KnifeAnim()local z=nil local j=Instance.new("\080\097\114\116")j.BrickColor=BrickColor.new("\082\101\097\108\108\121 \098\108\097\099\107")j.Name="\066\108\097\100\101"j.CanCollide=false j.FormFactor=Enum.FormFactor.Custom j.Size=VEC3(.5,2.5,1)local I=Instance.new("\083\112\101\099\105\097\108\077\101\115\104")I.MeshId=S.KnifeMeshId I.MeshType=Enum.MeshType.FileMesh I.Scale=VEC3(.7,.7,.7)I.TextureId=S.KnifeTextureId I.Parent=j j.Parent=Gun_Ignore local Z=Instance.new("\087\101\108\100")Z.Part0=j Z.Part1=FakeLArm Z.C0=CFANG(RAD(-90),0,RAD(180))Z.C1=CF(0,-1,.75)Z.Parent=j z=j.Touched:connect(function(z)if z then local j=FindFirstClass(z.Parent,"\072\117\109\097\110\111\105\100")if j and IsEnemy(j)then local z=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")z.Name="\099\114\101\097\116\111\114"z.Value=Player z.Parent=j j:TakeDamage(j.MaxHealth)MarkHit()end end end)TweenJoint(LWeld2,CF(),CFANG(0,RAD(90),0),Linear,.05)TweenJoint(LWeld,ArmC0[1],CF(-0.1,.2,-0.1)*CFANG(0,0,RAD(-20)),Linear,.05)TweenJoint(RWeld,ArmC0[2],CFANG(RAD(-30),0,0),Linear,.1)TweenJoint(Grip,Grip.C0,CF(),Linear,.1)spawn(function()local z=HRP.CFrame.lookVector*80000.0 local j=Instance.new("\066\111\100\121\070\111\114\099\101")j.force=z j.Parent=HRP delay(.03,function()j.force=-z/2 wait(.03)j:Destroy()end)end)wait(.05)RotCamera(RAD(6),0,true,.1)delay(.1,function()RotCamera(RAD(-2),0,true,.05)end)TweenJoint(LWeld,ArmC0[1],CF(.8,1.7,.2)*CFANG(0,0,RAD(-80)),Linear,.06)wait(.2)z:disconnect()wait(.2)TweenJoint(LWeld2,CF(),CF(),Linear,.15)TweenJoint(LWeld,ArmC0[1],S.ArmC1_UnAimed.Left,Linear,.15)TweenJoint(RWeld,ArmC0[2],S.ArmC1_UnAimed.Right,Linear,.15)j:Destroy()end
--------------------[ KNIFING FUNCTION ]----------------------------------------------

function KnifeAnim()
	local Connection = nil
	local Blade = Instance.new("Part")
	Blade.BrickColor = BrickColor.new("Really black")
	Blade.Name = "Blade"
	Blade.CanCollide = false
	Blade.FormFactor = Enum.FormFactor.Custom
	Blade.Size = VEC3(0.5, 2.5, 1)
	local Mesh = Instance.new("SpecialMesh")
	Mesh.MeshId = S.KnifeMeshId
	Mesh.MeshType = Enum.MeshType.FileMesh
	Mesh.Scale = VEC3(0.7, 0.7, 0.7)
	Mesh.TextureId = S.KnifeTextureId
	Mesh.Parent = Blade
	Blade.Parent = Gun_Ignore
	local BladeWeld = Instance.new("Weld")
	BladeWeld.Part0 = Blade
	BladeWeld.Part1 = FakeLArm
	BladeWeld.C0 = CFANG(RAD(-90), 0, RAD(180))
	BladeWeld.C1 = CF(0, -1, 0.75)
	BladeWeld.Parent = Blade
	Connection = Blade.Touched:connect(function(Obj)
		if Obj then
			local HitHumanoid = FindFirstClass(Obj.Parent, "Humanoid")
			if HitHumanoid and IsEnemy(HitHumanoid) then
				local CreatorTag = Instance.new("ObjectValue")
				CreatorTag.Name = "creator"
				CreatorTag.Value = Player
				CreatorTag.Parent = HitHumanoid
				HitHumanoid:TakeDamage(HitHumanoid.MaxHealth)
				MarkHit()
			end
		end
	end)
	TweenJoint(LWeld2, CF(), CFANG(0, RAD(90), 0), Linear, 0.05)
	TweenJoint(LWeld, ArmC0[1], CF(-0.1, 0.2, -0.1) * CFANG(0, 0, RAD(-20)), Linear, 0.05)
	TweenJoint(RWeld, ArmC0[2], CFANG(RAD(-30), 0, 0), Linear, 0.1)
	TweenJoint(Grip, Grip.C0, CF(), Linear, 0.1)
	spawn(function()
		local Force = HRP.CFrame.lookVector * 8e4
		local BF = Instance.new("BodyForce")
		BF.force = Force
		BF.Parent = HRP
		delay(0.03, function()
			BF.force = -Force / 2
			wait(0.03)
			BF:Destroy()
		end)
	end)
	wait(0.05)
	RotCamera(RAD(6), 0, true, 0.1)
	delay(0.1, function()
		RotCamera(RAD(-2), 0, true, 0.05)
	end)
	TweenJoint(LWeld, ArmC0[1], CF(0.8, 1.7, 0.2) * CFANG(0, 0, RAD(-80)), Linear, 0.06)
	wait(0.2)
	Connection:disconnect()
	wait(0.2)
	TweenJoint(LWeld2, CF(), CF(), Linear, 0.15)
	TweenJoint(LWeld, ArmC0[1], S.ArmC1_UnAimed.Left, Linear, 0.15)
	TweenJoint(RWeld, ArmC0[2], S.ArmC1_UnAimed.Right, Linear, 0.15)
	Blade:Destroy()
end
