After deleting the FreeCam gui with the script inside, UserInputService.InputBegan always says that the keycode P is gameProcessed even when its not
3 Likes
Just for anyone who needs a fix, here’s a script that fully disables freecam and fixes that issue.
local UIS = game:GetService("UserInputService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local function unbindFreeCam(ui)
if ui then ui:Destroy() end
ContextActionService:UnbindAction("FreecamToggle")
ContextActionService:UnbindAction("FreecamKeyboard")
ContextActionService:UnbindAction("FreecamMousePan")
ContextActionService:UnbindAction("FreecamMouseWheel")
ContextActionService:UnbindAction("FreecamGamepadButton")
ContextActionService:UnbindAction("FreecamGamepadTrigger")
ContextActionService:UnbindAction("FreecamGamepadThumbstick")
RunService:UnbindFromRenderStep("Freecam")
end
Player.CharacterAdded:Connect(function()
repeat task.wait() until Player:FindFirstChild("PlayerGui")
unbindFreeCam(Player.PlayerGui:WaitForChild("Freecam", 3))
end)
2 Likes