How to make the camera work like right click is always being held down?

I want to make it so my player’s camera works basically how it normally does. Except you don’t need to hold down right click to make the camera rotate around the player. I’ve messed around with this problem for like 2 hours now and I can’t figure out how.

Try messing around with stuff inside Enum.CameraType and I’m sure you’ll find that camera type you’re wanting.

I’ve tried every Enum.CameraType and none works like the regular roblox camera without holding down right click.

Found the solution:

local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

function RenderStep()
	UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
end

RunService.RenderStepped:Connect(RenderStep)
2 Likes