How can i lock the player's camera from moving but not the mouse

I’m trying to make it so the camera stays focused on a single model and cannot be moved, but the mouse can be moved.

Set the camera type to “scriptable”

i’ve done that but if you hold right click you can still move the camera

are you using camera.CameraSubject by any chance?

yes, i’m currently using camera subject

if im correct, you’re trying to lock the player’s camera to an object without moving the camera. in that case, you should set the cameratype to “scriptable” and use CFrame.LookAt.

camera.CFrame = CFrame.LookAt(camera position, model position)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.