function KeyPress(e)if e then if Active then e=string.lower(e)if e=="\099"then if Stance==2 then print("\067\114\111\117\099\104")Crouch()end else if e=="\120"then if Stance==1 then print("\083\116\097\110\100")Stand()end end end end end end script.Parent.Equipped:connect(function()Active=true mouse.KeyDown:connect(KeyPress)end)script.Parent.Unequipped:connect(function()Active=false Stand()end)


function KeyPress(key)
	if key then
		if Active then
			key = string.lower(key)
			if key == "c" then
				if Stance == 2 then
					print("Crouch")
					Crouch()
				end
			else
				if key == "x" then
					if Stance == 1 then
						print("Stand")
						Stand()
					end
				end
			end
		end
	end
end


script.Parent.Equipped:connect(function()
	Active = true
	mouse.KeyDown:connect(KeyPress)
end)

script.Parent.Unequipped:connect(function()
	Active = false
	Stand()
end)
