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

A way to temporarily disable the mouse for Camera Manipulation?

Asked by
bloxxyz 274 Moderation Voter
10 years ago

Is there a way I can temporarily disable the mouse for Camera Manipulation? I've just recently mastered some basic concepts of Camera Manipulation ( the camera circling around a part ) however, is there a way I can lock the mouse temporarily so the player can't glitch out the camera. I've seen many famous game makers do this. If it's too large of a script ( which I doubt ) , can someone at least explain the concept?

Thank you.

1 answer

Log in to vote
0
Answered by 10 years ago

In your LocalScript, put this:

--Optional below, I assume you already defined the camera xP
camera = game.Workspace.CurrentCamera
camera.CameraType = "Scriptable"

The Scriptable camera type is unable to be manipulated by ANYTHING except a script. This is the exact of what you are looking for because players can't move it around.

Ad

Answer this question