local Q=script.Parent:WaitForChild("\072\117\109\097\110\111\105\100")local c=true local k=true;(game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")).InputBegan:connect(function(s,i)if(s.KeyCode==Enum.KeyCode.X or s.KeyCode==Enum.KeyCode.ButtonY)and k then k=false script.RemoteEvent:FireServer(c);(Q:LoadAnimation(c and script.R or script.L)):Play()wait(.6)c=not c k=true end end)
--Put this in StarterPlayer, StarterCharacterScripts

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)
