-- Detect input to run or crawl

UIS.InputBegan:Connect(function(input)
	-- Detect input to run
	if input.KeyCode==Enum.KeyCode.LeftShift then
		-- Make sure not crawling or running already
		if shiftDown==false and not cDown then
			-- Run
			shiftDown=true
			hum.WalkSpeed=32
		end
	-- Detect input to crawl
	else if input.KeyCode==Enum.KeyCode.C then
			-- Make sure not running or crawling already
			if cDown==false and not shiftDown then
				-- Crawl
				cDown=true
				hum.WalkSpeed=5
				--crawlAnm:Play()
			end
		end
	end
end)
