I’m trying to imitate some AAA game’s camera system by sort of having the cursor stay in the centre of the screen but still be able to move the camera without having to press RMB while staying out of shitlock. Any way to do this?
1 Like
You can lock the mouse to the center of the screen with:
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
RunService:BindToRenderStep("MouseLock", Enum.RenderPriority.Last.Value+1, function()
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
end)
This causes the default camera to use panning like you’re referring to.
2 Likes