--[ Hooks ]--
-- Controls

Mouse.KeyDown:connect(function(Key)
	if (Hold ~= nil) then return end
	if (string.upper(Key) ~= "C") and (string.lower(Key) ~= " ") then return end
	Hold = true

	if (Torso:FindFirstChild("LegWeld") == nil) and (string.lower(Key) ~= " ") then
		-- Right Leg
		RH.Part1 = nil
		CreateWeld(RL, CFrame.new(-0.5, 0.495, 1.25)* CFrame.Angles(math.rad(90), 0, 0))

		-- Left Leg
		LH.Part1 = nil
		CreateWeld(LL, CFrame.new(0.5, 0.495, 1.25) * CFrame.Angles(math.rad(90), 0, 0))
		
		-- Lower Character
		RJ.C0 = CFrame.new(0, -1.25, 0) * CFrame.Angles(0, 0, 0)
		RJ.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
		
		-- Slow Walk Speed
		Humanoid.WalkSpeed = 5
	else
		StandUp()

		-- Normal Walk Speed
		Humanoid.WalkSpeed = 16
	end

	wait(0.5)

	Hold = nil
end)

Mouse.KeyUp:connect(function(Key)
	if (Hold ~= nil) then return end
	if (string.upper(Key) ~= "C") or (HoldKey.Value == false) then return end
	Hold = true

	StandUp()

	-- Normal Walk Speed
	Humanoid.WalkSpeed = 16

	wait(0.5)

	Hold = nil
end)
