Hi! I’m working on a camera button, and I’ve gotten it to lock onto an object, but, the user can still drag their mouse. How can I restrict the movement? Here’s my code.
Changing the camera type to Enum.CameraType.Scriptable will give players no direct ability to modify the camera. Setting the camera type to this implies that scripts should be in control of the camera.
You can read an example usage at the bottom of this Roblox Wiki article.