local P=script.Parent:WaitForChild("\072\117\109\097\110\111\105\100")local x=true local g=true;(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).InputBegan:connect(function(U,E)if(U.KeyCode==Enum.KeyCode.X or U.KeyCode==Enum.KeyCode.ButtonY)and g then g=false script.RemoteEvent:FireServer(x);(P:LoadAnimation(x and script.R or script.L)):Play()wait(.6)x=not x g=true end end)



local human = script.Parent:WaitForChild("Humanoid")

local AttackArm = true 

local canattack = true 

game:GetService("UserInputService").InputBegan:connect(function(input, gamepor)
	if (input.KeyCode == Enum.KeyCode.X or input.KeyCode == Enum.KeyCode.ButtonY) and canattack then 
		canattack = false 
		script.RemoteEvent:FireServer(AttackArm) 
		human:LoadAnimation(AttackArm and script.R or script.L):Play()
		wait(0.6) 
		AttackArm = not AttackArm 
		canattack = true 
	end	
end)
