How to lock the camera in place while allowing the mouse to be moved?
Asked by
6 years ago Edited 6 years ago
I wanna position the player's camera in such a way that it will always be locked to a part in the workspace without being able to turn or move, but I also want to allow for the mouse to move. This is for a menu type of level.
1 | cam = game.Workspace.CurrentCamera |
2 | target = game.Workspace.IntroCamera |
4 | cam.CameraSubject = target |
5 | cam.CameraType = "Scriptable" |
6 | cam.CFrame = target.CFrame |
So I've managed to make the camera locked to a part without the player able to turn it, but when I test it out, I can't move the mouse around, as it is locked to the center of the screen. How can I fix this?