i made it so that the mouse is locked in center of screen
1 | game:GetService( "UserInputService" ).MouseBehavior = Enum.MouseBehavior.LockCenter |
2 | game:GetService( "UserInputService" ).InputChanged:connect( function (inputObject) |
3 | if inputObject.UserInputType = = Enum.UserInputType.MouseMovement then |
4 | game:GetService( "UserInputService" ).MouseBehavior = Enum.MouseBehavior.LockCenter |
5 | end |
6 | end ) |
now how ho i make it so that it moves the camera when you move the mouse in 3d person
If you wanna do it simply just set the CameraMaxZoomDistance under StarterPlayer (Properties) to a low number. The player can't zoom out, and it moves the camera with the mouse, but it still stays center screen. That's the easy way. But there are other ways.