Just like Shift-lock, I want to make the camera move as the mouse moves, without the need of holding down right-click. How can I replicate this? I tried forcing camera modes but they don’t seem to do anything at all.
- Create a LocalScript in StarterPlayer → StarterPlayerScripts
- Enter this code into the LocalScript
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local GameSettings = UserSettings().GameSettings
RunService:BindToRenderStep("LockCenter", Enum.RenderPriority.Camera.Value, function()
if UserInputService.MouseBehavior ~= Enum.MouseBehavior.LockCenter then
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
end
if GameSettings.RotationType ~= Enum.RotationType.CameraRelative then
GameSettings.RotationType = Enum.RotationType.CameraRelative
end
end)
I still have to hold down Right Mouse button to move the camera