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

A way to temporarily disable the mouse for Camera Manipulation?

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

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.

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