script.Parent.OnServerEvent:Connect(function(V)local E=V.Character local s=E.Humanoid local t=E.HumanoidRootPart local H=E.Torso local Y=E["\082\105\103\104\116 \065\114\109"]local h=E["\076\101\102\116 \065\114\109"]local C=s:LoadAnimation(script.Punch)local Q=s:LoadAnimation(script.BD)local p=Assets.Punch3:Clone()C:Play()s.WalkSpeed=10 s.JumpPower=0 s.AutoRotate=false t.Anchored=true p.CFrame=H.CFrame*CFrame.new(0,-3,-2)p.Parent=workspace.Effects wait(.2)local q=Assets.Dust.Attachment:Clone()p.CanCollide=false p.CastShadow=false p.Anchored=true p.Parent=workspace.Effects p.Transparency=1 p.CFrame=H.CFrame*CFrame.new(0,-3,-2)q.Parent=t wait(.05)local x=workspace:GetPartBoundsInBox(p.CFrame,Vector3.new(19.5,22,19.5))local r={}for Y,h in pairs(x)do if h.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")and h.Parent~=E then if not r[h.Parent.Humanoid]then r[h.Parent.Humanoid]=true local Y=h.Parent.HumanoidRootPart script.Parent.Parent.Parent.Part1.Part2.Motor6D.Part1=Y Q:Play()local C=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",h.Parent.Torso)C.MaxForce=Vector3.new(1,1,1)*1000000 C.Parent=h.Parent.Torso C.Velocity=(Vector3.new(1,1,1)*(V.Character:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")).CFrame.LookVector)*0 C.Name="\083\109\097\108\108\077\111\118\101\086\101\108"game.Debris:AddItem(C,2)for V,E in pairs(q:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end wait(.01)wait(.5)local x=Assets.Dust.Attachment:Clone()p.CanCollide=false p.CastShadow=false p.Anchored=true p.Parent=workspace.Effects p.Transparency=1 p.CFrame=H.CFrame*CFrame.new(0,-3,-2)x.Parent=t wait(.05)local k=workspace:GetPartBoundsInBox(p.CFrame,Vector3.new(19.5,22,19.5))local d={}for s,t in pairs(k)do if t.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")and t.Parent~=E then if not d[t.Parent.Humanoid]then d[t.Parent.Humanoid]=true local E=RS.Events.Remotes.HitCounter E:FireClient(V)local s=t.Parent.Humanoid:LoadAnimation(script.Hit)s:Play()local H=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",t.Parent.Torso)H.MaxForce=Vector3.new(1,1,1)*1000000 H.Parent=t.Parent.Torso H.Velocity=(Vector3.new(1,1,1)*(V.Character:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")).CFrame.LookVector)*0 H.Name="\083\109\097\108\108\077\111\118\101\086\101\108"game.Debris:AddItem(H,2)local Y=Assets.Headbutt.Attachment:Clone()local h=t.Parent.Head Y.Parent=h Y.Hit:Play()for V,E in pairs(Y:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end for V,E in pairs(x:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end game.Debris:AddItem(Y,3)wait(.01)end end end wait(.45)local S=Assets.Dust.Attachment:Clone()p.CanCollide=false p.CastShadow=false p.Anchored=true p.Parent=workspace.Effects p.Transparency=1 p.CFrame=H.CFrame*CFrame.new(0,-3,-2)S.Parent=t wait(.05)local z=workspace:GetPartBoundsInBox(p.CFrame,Vector3.new(19.5,22,19.5))local l={}for s,t in pairs(z)do if t.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")and t.Parent~=E then if not l[t.Parent.Humanoid]then l[t.Parent.Humanoid]=true local E=RS.Events.Remotes.HitCounter E:FireClient(V)local s=t.Parent.Humanoid:LoadAnimation(script.Hit)s:Play()local H=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",t.Parent.Torso)H.MaxForce=Vector3.new(1,1,1)*1000000 H.Parent=t.Parent.Torso H.Velocity=(Vector3.new(1,1,1)*(V.Character:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")).CFrame.LookVector)*0 H.Name="\083\109\097\108\108\077\111\118\101\086\101\108"game.Debris:AddItem(H,2)local Y=Assets.Headbutt.Attachment:Clone()local h=t.Parent.Head Y.Parent=h Y.Hit:Play()for V,E in pairs(Y:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end for V,E in pairs(S:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end game.Debris:AddItem(Y,3)wait(.01)end end end wait(.45)local K=Assets.Dust.Attachment:Clone()p.CanCollide=false p.CastShadow=false p.Anchored=true p.Parent=workspace.Effects p.Transparency=1 p.CFrame=H.CFrame*CFrame.new(0,-3,-2)K.Parent=t wait(.05)local P=workspace:GetPartBoundsInBox(p.CFrame,Vector3.new(19.5,22,19.5))local o={}for s,t in pairs(P)do if t.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")and t.Parent~=E then if not o[t.Parent.Humanoid]then o[t.Parent.Humanoid]=true local E=RS.Events.Remotes.HitCounter E:FireClient(V)local s=t.Parent.Humanoid:LoadAnimation(script.Hit)s:Play()local H=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",t.Parent.Torso)H.MaxForce=Vector3.new(1,1,1)*1000000 H.Parent=t.Parent.Torso H.Velocity=(Vector3.new(1,1,1)*(V.Character:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")).CFrame.LookVector)*0 H.Name="\083\109\097\108\108\077\111\118\101\086\101\108"game.Debris:AddItem(H,2)local Y=Assets.Headbutt.Attachment:Clone()local h=t.Parent.Head Y.Parent=h Y.Hit:Play()for V,E in pairs(Y:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end for V,E in pairs(K:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end game.Debris:AddItem(Y,3)wait(.01)end end end wait(.3)local n=Assets.Dust.Attachment:Clone()p.CanCollide=false p.CastShadow=false p.Anchored=true p.Parent=workspace.Effects p.Transparency=1 p.CFrame=H.CFrame*CFrame.new(0,-3,-2)n.Parent=t wait(.05)local A=workspace:GetPartBoundsInBox(p.CFrame,Vector3.new(19.5,22,19.5))local U={}for H,Y in pairs(A)do if Y.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")and Y.Parent~=E then if not U[Y.Parent.Humanoid]then U[Y.Parent.Humanoid]=true local E=RS.Events.Remotes.HitCounter E:FireClient(V)script.Parent.Parent.Parent.Part1.Part2.Motor6D.Part1=nil t.Anchored=false s.WalkSpeed=16 s.JumpPower=50 s.AutoRotate=true Y.Parent.Humanoid:TakeDamage(25)local H=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",Y.Parent.Torso)H.MaxForce=Vector3.new(1,1,1)*1000000 H.Parent=Y.Parent.Torso H.Velocity=(Vector3.new(1,1,1)*(V.Character:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")).CFrame.RightVector)*70 H.Name="\083\109\097\108\108\077\111\118\101\086\101\108"game.Debris:AddItem(H,.2)RagodllModule.RagDoll(Y.Parent,1)local h=Assets.Headbutt.Attachment:Clone()local C=Y.Parent.Head h.Parent=C h.Hit2:Play()for V,E in pairs(h:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end for V,E in pairs(n:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end game.Debris:AddItem(h,3)local Q=Assets.HitFXbd.Attach2:Clone()Q.Parent=Y.Parent.Torso for V,E in pairs(Q:GetDescendants())do if E:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then E:Emit(E:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end game.Debris:AddItem(Q,3)wait(.01)end end end end end end t.Anchored=false s.WalkSpeed=16 s.JumpPower=50 s.AutoRotate=true wait(2)p:Destroy()q:Destroy()end)

script.Parent.OnServerEvent:Connect(function(p)
	local Character = p.Character
	local Humanoid = Character.Humanoid
	local RootPart = Character.HumanoidRootPart
	local torso = Character.Torso
	local RArm = Character["Right Arm"]
	local LArm = Character["Left Arm"]
	local anim = Humanoid:LoadAnimation(script.Punch)
	local anim3 = Humanoid:LoadAnimation(script.BD)
	local FX = Assets.Punch3:Clone()
	anim:Play()
	Humanoid.WalkSpeed = 10
	Humanoid.JumpPower = 0
	Humanoid.AutoRotate = false
	RootPart.Anchored = true
	FX.CFrame = torso.CFrame * CFrame.new(0,-3,-2)
	FX.Parent = workspace.Effects
	wait(0.2)
	local dust = Assets.Dust.Attachment:Clone()
	FX.CanCollide = false
	FX.CastShadow = false
	FX.Anchored = true
	FX.Parent = workspace.Effects
	FX.Transparency = 1
	FX.CFrame = torso.CFrame * CFrame.new(0,-3,-2)
	dust.Parent = RootPart
	wait(0.05)
	local hitcontent = workspace:GetPartBoundsInBox(FX.CFrame, Vector3.new(19.5, 22, 19.5))
	local hitlist = {}
	for _,v in pairs(hitcontent) do
		if v.Parent:FindFirstChild("Humanoid") and v.Parent ~= Character then
			if not hitlist[v.Parent.Humanoid] then
				hitlist[v.Parent.Humanoid] = true
				local RootPart2 = v.Parent.HumanoidRootPart
				script.Parent.Parent.Parent.Part1.Part2.Motor6D.Part1 = RootPart2
				anim3:Play()
				local vel = Instance.new("BodyVelocity", v.Parent.Torso)
				vel.MaxForce = Vector3.new(1,1,1) * 1000000;
				vel.Parent = v.Parent.Torso
				vel.Velocity = Vector3.new(1,1,1) * p.Character:WaitForChild("HumanoidRootPart").CFrame.LookVector * 0
				vel.Name  =  "SmallMoveVel"
				game.Debris:AddItem(vel,2)
				for _,Particles in pairs(dust:GetDescendants()) do
					if Particles:IsA("ParticleEmitter") then
						Particles:Emit(Particles:GetAttribute("EmitCount"))
					end
				end
				wait(0.01)
				wait(0.5)
				local dust = Assets.Dust.Attachment:Clone()
				FX.CanCollide = false
				FX.CastShadow = false
				FX.Anchored = true
				FX.Parent = workspace.Effects
				FX.Transparency = 1
				FX.CFrame = torso.CFrame * CFrame.new(0,-3,-2)
				dust.Parent = RootPart
				wait(0.05)
				local hitcontent = workspace:GetPartBoundsInBox(FX.CFrame, Vector3.new(19.5, 22, 19.5))
				local hitlist = {}
				for _,v in pairs(hitcontent) do
					if v.Parent:FindFirstChild("Humanoid") and v.Parent ~= Character then
						if not hitlist[v.Parent.Humanoid] then
							hitlist[v.Parent.Humanoid] = true
							local HitCounterRemote = RS.Events.Remotes.HitCounter
							HitCounterRemote:FireClient(p)
							local anim2 = v.Parent.Humanoid:LoadAnimation(script.Hit)
							anim2:Play()
							local vel = Instance.new("BodyVelocity", v.Parent.Torso)
							vel.MaxForce = Vector3.new(1,1,1) * 1000000;
							vel.Parent = v.Parent.Torso
							vel.Velocity = Vector3.new(1,1,1) * p.Character:WaitForChild("HumanoidRootPart").CFrame.LookVector * 0
							vel.Name  =  "SmallMoveVel"
							game.Debris:AddItem(vel,2)
							local HitFX = Assets.Headbutt.Attachment:Clone()
							local Head = v.Parent.Head
							HitFX.Parent = Head
							HitFX.Hit:Play()
							for _,Particles in pairs(HitFX:GetDescendants()) do
								if Particles:IsA("ParticleEmitter") then
									Particles:Emit(Particles:GetAttribute("EmitCount"))
								end
							end
							for _,Particles in pairs(dust:GetDescendants()) do
								if Particles:IsA("ParticleEmitter") then
									Particles:Emit(Particles:GetAttribute("EmitCount"))
								end
							end
							game.Debris:AddItem(HitFX,3)
							wait(0.01)
						end
					end
				end
				wait(0.45)
				local dust = Assets.Dust.Attachment:Clone()
				FX.CanCollide = false
				FX.CastShadow = false
				FX.Anchored = true
				FX.Parent = workspace.Effects
				FX.Transparency = 1
				FX.CFrame = torso.CFrame * CFrame.new(0,-3,-2)
				dust.Parent = RootPart
				wait(0.05)
				local hitcontent = workspace:GetPartBoundsInBox(FX.CFrame, Vector3.new(19.5, 22, 19.5))
				local hitlist = {}
				for _,v in pairs(hitcontent) do
					if v.Parent:FindFirstChild("Humanoid") and v.Parent ~= Character then
						if not hitlist[v.Parent.Humanoid] then
							hitlist[v.Parent.Humanoid] = true
							local HitCounterRemote = RS.Events.Remotes.HitCounter
							HitCounterRemote:FireClient(p)
							local anim2 = v.Parent.Humanoid:LoadAnimation(script.Hit)
							anim2:Play()
							local vel = Instance.new("BodyVelocity", v.Parent.Torso)
							vel.MaxForce = Vector3.new(1,1,1) * 1000000;
							vel.Parent = v.Parent.Torso
							vel.Velocity = Vector3.new(1,1,1) * p.Character:WaitForChild("HumanoidRootPart").CFrame.LookVector * 0
							vel.Name  =  "SmallMoveVel"
							game.Debris:AddItem(vel,2)
							local HitFX = Assets.Headbutt.Attachment:Clone()
							local Head = v.Parent.Head
							HitFX.Parent = Head
							HitFX.Hit:Play()
							for _,Particles in pairs(HitFX:GetDescendants()) do
								if Particles:IsA("ParticleEmitter") then
									Particles:Emit(Particles:GetAttribute("EmitCount"))
								end
							end
							for _,Particles in pairs(dust:GetDescendants()) do
								if Particles:IsA("ParticleEmitter") then
									Particles:Emit(Particles:GetAttribute("EmitCount"))
								end
							end
							game.Debris:AddItem(HitFX,3)
							wait(0.01)
						end
					end
				end
				wait(0.45)
				local dust = Assets.Dust.Attachment:Clone()
				FX.CanCollide = false
				FX.CastShadow = false
				FX.Anchored = true
				FX.Parent = workspace.Effects
				FX.Transparency = 1
				FX.CFrame = torso.CFrame * CFrame.new(0,-3,-2)
				dust.Parent = RootPart
				wait(0.05)
				local hitcontent = workspace:GetPartBoundsInBox(FX.CFrame, Vector3.new(19.5, 22, 19.5))
				local hitlist = {}
				for _,v in pairs(hitcontent) do
					if v.Parent:FindFirstChild("Humanoid") and v.Parent ~= Character then
						if not hitlist[v.Parent.Humanoid] then
							hitlist[v.Parent.Humanoid] = true
							local HitCounterRemote = RS.Events.Remotes.HitCounter
							HitCounterRemote:FireClient(p)
							local anim2 = v.Parent.Humanoid:LoadAnimation(script.Hit)
							anim2:Play()
							local vel = Instance.new("BodyVelocity", v.Parent.Torso)
							vel.MaxForce = Vector3.new(1,1,1) * 1000000;
							vel.Parent = v.Parent.Torso
							vel.Velocity = Vector3.new(1,1,1) * p.Character:WaitForChild("HumanoidRootPart").CFrame.LookVector * 0
							vel.Name  =  "SmallMoveVel"
							game.Debris:AddItem(vel,2)
							local HitFX = Assets.Headbutt.Attachment:Clone()
							local Head = v.Parent.Head
							HitFX.Parent = Head
							HitFX.Hit:Play()
							for _,Particles in pairs(HitFX:GetDescendants()) do
								if Particles:IsA("ParticleEmitter") then
									Particles:Emit(Particles:GetAttribute("EmitCount"))
								end
							end
							for _,Particles in pairs(dust:GetDescendants()) do
								if Particles:IsA("ParticleEmitter") then
									Particles:Emit(Particles:GetAttribute("EmitCount"))
								end
							end
							game.Debris:AddItem(HitFX,3)
							wait(0.01)
						end
					end
				end
				wait(0.3)
				local dust = Assets.Dust.Attachment:Clone()
				FX.CanCollide = false
				FX.CastShadow = false
				FX.Anchored = true
				FX.Parent = workspace.Effects
				FX.Transparency = 1
				FX.CFrame = torso.CFrame * CFrame.new(0,-3,-2)
				dust.Parent = RootPart
				wait(0.05)
				local hitcontent = workspace:GetPartBoundsInBox(FX.CFrame, Vector3.new(19.5, 22, 19.5))
				local hitlist = {}
				for _,v in pairs(hitcontent) do
					if v.Parent:FindFirstChild("Humanoid") and v.Parent ~= Character then
						if not hitlist[v.Parent.Humanoid] then
							hitlist[v.Parent.Humanoid] = true
							local HitCounterRemote = RS.Events.Remotes.HitCounter
							HitCounterRemote:FireClient(p)
							script.Parent.Parent.Parent.Part1.Part2.Motor6D.Part1 = nil
							RootPart.Anchored = false
							Humanoid.WalkSpeed = 16
							Humanoid.JumpPower = 50
							Humanoid.AutoRotate = true
							v.Parent.Humanoid:TakeDamage(25)
							local vel = Instance.new("BodyVelocity", v.Parent.Torso)
							vel.MaxForce = Vector3.new(1,1,1) * 1000000;
							vel.Parent = v.Parent.Torso
							vel.Velocity = Vector3.new(1,1,1) * p.Character:WaitForChild("HumanoidRootPart").CFrame.RightVector * 70
							vel.Name  =  "SmallMoveVel"
							game.Debris:AddItem(vel,.2)
							RagodllModule.RagDoll(v.Parent,1)
							local HitFX = Assets.Headbutt.Attachment:Clone()
							local Head = v.Parent.Head
							HitFX.Parent = Head
							HitFX.Hit2:Play()
							for _,Particles in pairs(HitFX:GetDescendants()) do
								if Particles:IsA("ParticleEmitter") then
									Particles:Emit(Particles:GetAttribute("EmitCount"))
								end
							end
							for _,Particles in pairs(dust:GetDescendants()) do
								if Particles:IsA("ParticleEmitter") then
									Particles:Emit(Particles:GetAttribute("EmitCount"))
								end
							end
							game.Debris:AddItem(HitFX,3)
							local HitFX2 = Assets.HitFXbd.Attach2:Clone()
							HitFX2.Parent = v.Parent.Torso
							for _,Particles in pairs(HitFX2:GetDescendants()) do
								if Particles:IsA("ParticleEmitter") then
									Particles:Emit(Particles:GetAttribute("EmitCount"))
								end
							end
							game.Debris:AddItem(HitFX2,3)
							wait(0.01)
						end
					end
				end
			end
		end
	end
	RootPart.Anchored = false
	Humanoid.WalkSpeed = 16
	Humanoid.JumpPower = 50
	Humanoid.AutoRotate = true
	wait(2)
	FX:Destroy()
	dust:Destroy()
end)
