--------------------[ KEYBOARD FUNCTIONS ]--------------------------------------------


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)
