Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I disable camera control via mouse click?

The right-mouse button can be used to adjust the camera if need be. However, I'd like to disable this so the only method of camera control the player has are the left and right arrow keys, which rotate your camera left and right if you haven't tried them. Any ideas?

1 answer

Change CameraType to scriptable; it prevents mouse inputs from affecting the camera.

EDIT: Also, use runservice's RenderStepped function for your camera movement, that way it's calculated per-frame instead of per-tick.

1 comment

0

Would the camera still be able to be manipulated with the arrow keys, though?

This discussion is preserved as it was. New answers, comments, and votes are closed.