tool.Activated:Connect(function()if state=="\105\100\108\101"then state="\115\119\105\110\103\105\110\103"for k,f in pairs(hitpeople)do hitpeople[k]=nil end local k=equiptick if tick()-lastswingtick>2 then swinganimation=0 end if swinganimation==0 then swinganimation=1 charhum.WalkSpeed=charhum.WalkSpeed+speedbuff pose("\115\119\105\110\103",1,.25*animslowdownmult,k)wait(.2*animslowdownmult)trail.Enabled=true remote:FireClient(player,"\049")playswingid()pose("\115\119\105\110\103",2,.05*animslowdownmult,k)wait(.05*animslowdownmult)pose("\115\119\105\110\103",3,.2*animslowdownmult,k)wait(.2*animslowdownmult)remote:FireClient(player,"\050")trail.Enabled=false charhum.WalkSpeed=charhum.WalkSpeed-speedbuff pose("\101\113\117\105\112",2,.5*animslowdownmult,k)wait(.3*animslowdownmult)if k==equiptick then state="\105\100\108\101"end elseif swinganimation==1 then swinganimation=2 charhum.WalkSpeed=charhum.WalkSpeed+speedbuff pose("\115\119\105\110\103\050",1,.25*animslowdownmult,k)wait(.2*animslowdownmult)trail.Enabled=true remote:FireClient(player,"\049")playswingid()pose("\115\119\105\110\103\050",2,.15*animslowdownmult,k)wait(.15*animslowdownmult)pose("\115\119\105\110\103\050",3,.1*animslowdownmult,k)wait(.1*animslowdownmult)charhum.WalkSpeed=charhum.WalkSpeed-speedbuff pose("\115\119\105\110\103\050",4,.2*animslowdownmult,k)wait(.2*animslowdownmult)remote:FireClient(player,"\050")trail.Enabled=false pose("\101\113\117\105\112",2,.5*animslowdownmult,k)wait(.3*animslowdownmult)if k==equiptick then state="\105\100\108\101"end elseif swinganimation==2 then swinganimation=0 charhum.WalkSpeed=charhum.WalkSpeed+speedbuff pose("\115\119\105\110\103\051",1,.1*animslowdownmult,k)wait(.1*animslowdownmult)pose("\115\119\105\110\103\051",2,.35*animslowdownmult,k)wait(.3*animslowdownmult)trail.Enabled=true remote:FireClient(player,"\049")playswingid()pose("\115\119\105\110\103\051",3,.1*animslowdownmult,k)wait(.1*animslowdownmult)pose("\115\119\105\110\103\051",4,.16*animslowdownmult,k)wait(.08*animslowdownmult)remote:FireClient(player,"\050")trail.Enabled=false charhum.WalkSpeed=charhum.WalkSpeed-speedbuff pose("\115\119\105\110\103\051",5,.1*animslowdownmult,k)wait(.1*animslowdownmult)pose("\101\113\117\105\112",2,.5*animslowdownmult,k)wait(.5*animslowdownmult)if k==equiptick then state="\105\100\108\101"end end lastswingtick=tick()end end)tool.Equipped:Connect(function()state="\101\113\117\105\112\112\105\110\103"validatetick=tick()local k=validatetick equiptick=validatetick player=players:GetPlayerFromCharacter(tool.Parent)character=player.Character charhum=character:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")weldlimb(character.HumanoidRootPart,character.Torso,cfnew(),"\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116\087\101\108\100")weldlimb(character.Torso,character.Head,cfnew(0,1.5,0),"\072\101\097\100\087\101\108\100")weldlimb(character.Head,character["\082\105\103\104\116 \065\114\109"],cfnew(1.43301296,-0.691987038,.466506958,.866025388,0,.5,-0.249999985,-0.866025329,.433012664,.433012694,-0.5,-0.75),"\082\105\103\104\116\065\114\109\087\101\108\100")weldlimb(character.Head,character["\076\101\102\116 \065\114\109"],cfnew(-1.5,-1.5,0,1,0,0,0,.99999994,0,0,0,1),"\076\101\102\116\065\114\109\087\101\108\100")local f=character["\082\105\103\104\116 \065\114\109"]:WaitForChild("\082\105\103\104\116\071\114\105\112")f.C0=cfnew(.00500011444,-1,-1.34000015,-1.74622983e-10,1.00000036,-6.56216748e-11,.999999881,-1.74622955e-10,8.9406953e-08,-8.94069672e-08,6.56216748e-11,-1)pose("\101\113\117\105\112",1,.25,k)wait(.25)pose("\101\113\117\105\112",2,.25,k)wait(.2)if state=="\101\113\117\105\112\112\105\110\103"then state="\105\100\108\101"end end)tool.Unequipped:Connect(function()state="\117\110\101\113\117\105\112\112\101\100"local k=findthing("\072\101\097\100\087\101\108\100",character)local f=findthing("\082\105\103\104\116\065\114\109\087\101\108\100",character)local v=findthing("\076\101\102\116\065\114\109\087\101\108\100",character)local w=findthing("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116\087\101\108\100",character)if k then k:Destroy()end if f then f:Destroy()end if v then v:Destroy()end if w then w:Destroy()end end)

tool.Activated:Connect(function()
	if state == "idle" then
		state = "swinging"
		for i,v in pairs(hitpeople) do
			hitpeople[i] = nil
		end
		local backuptick = equiptick
		if (tick() - lastswingtick) > 2 then
			swinganimation = 0
		end
		if swinganimation == 0 then
			swinganimation = 1
			charhum.WalkSpeed = charhum.WalkSpeed + speedbuff
			pose("swing", 1, 0.25*animslowdownmult, backuptick)
			wait(0.2*animslowdownmult)
			trail.Enabled = true
			remote:FireClient(player, "1")
			playswingid()
			pose("swing", 2, 0.05*animslowdownmult, backuptick)
			wait(0.05*animslowdownmult)
			pose("swing", 3, 0.2*animslowdownmult, backuptick)
			wait(0.2*animslowdownmult)
			remote:FireClient(player, "2")
			trail.Enabled = false
			charhum.WalkSpeed = charhum.WalkSpeed - speedbuff
			pose("equip", 2, 0.5*animslowdownmult, backuptick)
			wait(0.3*animslowdownmult)
			if backuptick == equiptick then
				state = "idle"
			end
		elseif swinganimation == 1 then
			swinganimation = 2
			charhum.WalkSpeed = charhum.WalkSpeed + speedbuff
			pose("swing2", 1, 0.25*animslowdownmult, backuptick)
			wait(0.2*animslowdownmult)
			trail.Enabled = true
			remote:FireClient(player, "1")
			playswingid()
			pose("swing2", 2, 0.15*animslowdownmult, backuptick)
			wait(0.15*animslowdownmult)
			pose("swing2", 3, 0.1*animslowdownmult, backuptick)
			wait(0.1*animslowdownmult)
			charhum.WalkSpeed = charhum.WalkSpeed - speedbuff
			pose("swing2", 4, 0.2*animslowdownmult, backuptick)
			wait(0.2*animslowdownmult)
			remote:FireClient(player, "2")
			trail.Enabled = false
			pose("equip", 2, 0.5*animslowdownmult, backuptick)
			wait(0.3*animslowdownmult)
			if backuptick == equiptick then
				state = "idle"
			end
		elseif swinganimation == 2 then
			swinganimation = 0
			charhum.WalkSpeed = charhum.WalkSpeed + speedbuff
			pose("swing3", 1, 0.1*animslowdownmult, backuptick)
			wait(0.1*animslowdownmult)
			pose("swing3", 2, 0.35*animslowdownmult, backuptick)
			wait(0.3*animslowdownmult)
			trail.Enabled = true
			remote:FireClient(player, "1")
			playswingid()
			pose("swing3", 3, 0.1*animslowdownmult, backuptick)
			wait(0.1*animslowdownmult)
			pose("swing3", 4, 0.16*animslowdownmult, backuptick)
			wait(0.08*animslowdownmult)
			remote:FireClient(player, "2")
			trail.Enabled = false
			charhum.WalkSpeed = charhum.WalkSpeed - speedbuff
			pose("swing3", 5, 0.1*animslowdownmult, backuptick)
			wait(0.1*animslowdownmult)
			pose("equip", 2, 0.5*animslowdownmult, backuptick)
			wait(0.5*animslowdownmult)
			if backuptick == equiptick then
				state = "idle"
			end
		end
		lastswingtick = tick()
	end
end)
tool.Equipped:Connect(function()
	state = "equipping"
	validatetick = tick()
	local backuptick = validatetick
	equiptick = validatetick
	player = players:GetPlayerFromCharacter(tool.Parent)
	character = player.Character
	charhum = character:FindFirstChildOfClass("Humanoid")
	weldlimb(character.HumanoidRootPart, character.Torso, cfnew(), "HumanoidRootPartWeld")
	weldlimb(character.Torso, character.Head, cfnew(0,1.5,0), "HeadWeld")
	weldlimb(character.Head, character["Right Arm"], cfnew(1.43301296, -0.691987038, 0.466506958, 0.866025388, 0, 0.5, -0.249999985, -0.866025329, 0.433012664, 0.433012694, -0.5, -0.75), "RightArmWeld")
	weldlimb(character.Head, character["Left Arm"], cfnew(-1.5, -1.5, 0, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1), "LeftArmWeld")
	local grip = character["Right Arm"]:WaitForChild("RightGrip")
	grip.C0 = cfnew(0.00500011444, -1, -1.34000015, -1.74622983e-10, 1.00000036, -6.56216748e-11, 0.999999881, -1.74622955e-10, 8.9406953e-08, -8.94069672e-08, 6.56216748e-11, -1)
	pose("equip", 1, 0.25, backuptick)
	wait(0.25)
	pose("equip", 2, 0.25, backuptick)
	wait(0.2)
	if state == "equipping" then
		state = "idle"
	end
end)
tool.Unequipped:Connect(function()
	state = "unequipped"
	local limb1 = findthing("HeadWeld", character)
	local limb2 = findthing("RightArmWeld", character)
	local limb3 = findthing("LeftArmWeld", character)
	local limb4 = findthing("HumanoidRootPartWeld", character)
	if limb1 then
		limb1:Destroy()
	end
	if limb2 then
		limb2:Destroy()
	end
	if limb3 then
		limb3:Destroy()
	end
	if limb4 then
		limb4:Destroy()
	end
end)
