Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I disable camera control via mouse click?

Asked by
Zerio920 285 Moderation Voter
9 years ago

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

Log in to vote
0
Answered by 9 years ago

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.

0
Would the camera still be able to be manipulated with the arrow keys, though? Zerio920 285 — 9y
Ad

Answer this question