script.Parent.OnServerEvent:Connect(function(c)local g=c.Character local Z=g.Humanoid local e=g.HumanoidRootPart local E=Z:LoadAnimation(script["\049"])local R=Z:LoadAnimation(script["\050"])local V=Assets.Red:Clone()local J=Assets.RA.Attachment:Clone()local l=g["\082\105\103\104\116 \065\114\109"]J.Sound:Play()J.Voice:Play()J.Parent=l Z.WalkSpeed=0 Z.JumpPower=0 Z.JumpHeight=0 local d=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",e)d.MaxForce=Vector3.new(1,1,1)*1000000 d.Parent=e d.Velocity=(Vector3.new(1,1,1)*(c.Character:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")).CFrame.LookVector)*0 d.Name="\083\109\097\108\108\077\111\118\101\086\101\108"game.Debris:AddItem(d,1)V.Parent=workspace.Effects V.CFrame=e.CFrame*CFrame.new(0,2,-5)E:Play()wait(1.25)Z.AutoRotate=false for c,g in pairs(J.Attachment.Parent:GetDescendants())do if g:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then g.Enabled=false end end J.N.Enabled=true J.N2.Enabled=true J.N3.Enabled=true wait(.5)R:Play()J:Destroy()V.Parent=workspace.Effects V.CFrame=e.CFrame*CFrame.new(0,-3,-25)V.Sound:Play()for c,g in pairs(V.Red.Attachment:GetDescendants())do if g:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then g:Emit(g:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end for c,g in pairs(V.Red.Attachment2:GetDescendants())do if g:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then g:Emit(g:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end for c,g in pairs(V.Red.Explode:GetDescendants())do if g:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then g:Emit(g:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end for c,g in pairs(V.Red.Parent:GetDescendants())do if g:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then g:Emit(g:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end for c,g in pairs(V.Red.FX:GetDescendants())do if g:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then g:Emit(g:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end for c,g in pairs(V.Red.FX2:GetDescendants())do if g:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then g:Emit(g:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end local A=workspace:GetPartBoundsInBox(V.CFrame,Vector3.new(18,14.5,52))local T={}for Z,e in pairs(A)do if e.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")and e.Parent~=g then if not T[e.Parent.Humanoid]then T[e.Parent.Humanoid]=true e.Parent.Humanoid:TakeDamage(Damage)local g=Instance.new("\066\111\100\121\086\101\108\111\099\105\116\121",e.Parent.HumanoidRootPart)g.MaxForce=Vector3.new(1,1,1)*1000000 g.Parent=e.Parent.HumanoidRootPart g.Velocity=(Vector3.new(1,1,1)*(c.Character:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")).CFrame.LookVector)*180 g.Name="\083\109\097\108\108\077\111\118\101\086\101\108"game.Debris:AddItem(g,.1)local Z=Assets.HitFX.Attach:Clone()Z.Parent=e.Parent.HumanoidRootPart for c,g in pairs(Z:GetDescendants())do if g:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then g:Emit(g:GetAttribute("\069\109\105\116\067\111\117\110\116"))end end game.Debris:AddItem(Z,3)end end end RockModule.RayCastEffect(e,10,6.5,-6.5,1,1)E:Stop()wait(1.5)Z.AutoRotate=true Z.WalkSpeed=16 Z.JumpPower=50 Z.JumpHeight=7.2 wait(3)V:Destroy()end)

script.Parent.OnServerEvent:Connect(function(p)
	local Character = p.Character
	local Humanoid = Character.Humanoid
	local RootPart = Character.HumanoidRootPart
	local anim1 = Humanoid:LoadAnimation(script["1"])
	local anim2 = Humanoid:LoadAnimation(script["2"])
	local FX = Assets["Red"]:Clone()
	local RArmFX = Assets.RA.Attachment:Clone()
	local RArm = Character["Right Arm"]
	RArmFX.Sound:Play()
	RArmFX.Voice:Play()
	RArmFX.Parent = RArm
	Humanoid.WalkSpeed = 0
	Humanoid.JumpPower = 0
	Humanoid.JumpHeight = 0
	local vel = Instance.new("BodyVelocity", RootPart)
	vel.MaxForce = Vector3.new(1,1,1) * 1000000;
	vel.Parent = RootPart
	vel.Velocity = Vector3.new(1,1,1) * p.Character:WaitForChild("HumanoidRootPart").CFrame.LookVector * 0
	vel.Name  =  "SmallMoveVel"
	game.Debris:AddItem(vel,1)
	FX.Parent = workspace.Effects
	FX.CFrame = RootPart.CFrame * CFrame.new(0,2,-5)
	anim1:Play()
	wait(1.25)
	Humanoid.AutoRotate = false
	for _,Particles in pairs(RArmFX.Attachment.Parent:GetDescendants()) do
		if Particles:IsA("ParticleEmitter") then
			Particles.Enabled = false
		end
	end
	RArmFX.N.Enabled = true
	RArmFX.N2.Enabled = true
	RArmFX.N3.Enabled = true
	wait(.5)
	anim2:Play()
	RArmFX:Destroy()
	FX.Parent = workspace.Effects
	FX.CFrame = RootPart.CFrame * CFrame.new(0,-3,-25)
	FX.Sound:Play()
	for _,Particles in pairs(FX.Red.Attachment:GetDescendants()) do
		if Particles:IsA("ParticleEmitter") then
			Particles:Emit(Particles:GetAttribute("EmitCount"))
		end
	end
	for _,Particles in pairs(FX.Red.Attachment2:GetDescendants()) do
		if Particles:IsA("ParticleEmitter") then
			Particles:Emit(Particles:GetAttribute("EmitCount"))
		end
	end
	for _,Particles in pairs(FX.Red.Explode:GetDescendants()) do
		if Particles:IsA("ParticleEmitter") then
			Particles:Emit(Particles:GetAttribute("EmitCount"))
		end
	end	
	for _,Particles in pairs(FX.Red.Parent:GetDescendants()) do
		if Particles:IsA("ParticleEmitter") then
			Particles:Emit(Particles:GetAttribute("EmitCount"))
		end
	end
	for _,Particles in pairs(FX.Red.FX:GetDescendants()) do
		if Particles:IsA("ParticleEmitter") then
			Particles:Emit(Particles:GetAttribute("EmitCount"))
		end
	end	
	for _,Particles in pairs(FX.Red.FX2:GetDescendants()) do
		if Particles:IsA("ParticleEmitter") then
			Particles:Emit(Particles:GetAttribute("EmitCount"))
		end
	end	
	local hitcontent = workspace:GetPartBoundsInBox(FX.CFrame, Vector3.new(18, 14.5, 52))
	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
				v.Parent.Humanoid:TakeDamage(Damage)
				local vel = Instance.new("BodyVelocity", v.Parent.HumanoidRootPart)
				vel.MaxForce = Vector3.new(1,1,1) * 1000000;
				vel.Parent = v.Parent.HumanoidRootPart
				vel.Velocity = Vector3.new(1,1,1) * p.Character:WaitForChild("HumanoidRootPart").CFrame.LookVector * 180
				vel.Name  =  "SmallMoveVel"
				game.Debris:AddItem(vel,0.1)
				local HitFX = Assets.HitFX.Attach:Clone()
				HitFX.Parent = v.Parent.HumanoidRootPart
				for _,Particles in pairs(HitFX:GetDescendants()) do
					if Particles:IsA("ParticleEmitter") then
						Particles:Emit(Particles:GetAttribute("EmitCount"))
					end
				end
				game.Debris:AddItem(HitFX,3)
			end
		end
	end
	RockModule.RayCastEffect(RootPart, 10, 6.5, -6.5, 1, 1)
	anim1:Stop()
	wait(1.5)
	Humanoid.AutoRotate = true
	Humanoid.WalkSpeed = 16
	Humanoid.JumpPower = 50
	Humanoid.JumpHeight = 7.2
	wait(3)
	FX:Destroy()
end)
