do local u=false local function q()if u then StopFreecam()else StartFreecam()end u=not u end local function h(u)for q=1,#u-1,1 do if not UserInputService:IsKeyDown(u[q])then return end end q()end local function S(u,q,S)if q==Enum.UserInputState.Begin then if S.KeyCode==FREECAM_MACRO_KB[#FREECAM_MACRO_KB]then h(FREECAM_MACRO_KB)end end return Enum.ContextActionResult.Pass end ContextActionService:BindActionAtPriority("\070\114\101\101\099\097\109\084\111\103\103\108\101",S,false,TOGGLE_INPUT_PRIORITY,FREECAM_MACRO_KB[#FREECAM_MACRO_KB])end
------------------------------------------------------------------------

do
	local enabled = false

	local function ToggleFreecam()
		if enabled then
			StopFreecam()
		else
			StartFreecam()
		end
		enabled = not enabled
	end

	local function CheckMacro(macro)
		for i = 1, #macro - 1 do
			if not UserInputService:IsKeyDown(macro[i]) then
				return
			end
		end
		ToggleFreecam()
	end

	local function HandleActivationInput(action, state, input)
		if state == Enum.UserInputState.Begin then
			if input.KeyCode == FREECAM_MACRO_KB[#FREECAM_MACRO_KB] then
				CheckMacro(FREECAM_MACRO_KB)
			end
		end
		return Enum.ContextActionResult.Pass
	end

	ContextActionService:BindActionAtPriority(
		"FreecamToggle",
		HandleActivationInput,
		false,
		TOGGLE_INPUT_PRIORITY,
		FREECAM_MACRO_KB[#FREECAM_MACRO_KB]
	)
end
