Locking Player in Third Person Help

You can set the Players CameraMaxZoomDistance and their CameraMinZoomDistance be the same value. This will prevent the player from zooming in and out. You can lock a player’s mouse to the center of the screen by using

-- Lock mouse to center of the screen
local UserInputService = game:GetService("UserInputService")
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
UserInputService.MouseIconEnabled = true -- This makes the mouse icon visible
-- Reset mouse behavior to default
UserInputService.MouseBehavior = Enum.MouseBehavior.Default
UserInputService.MouseIconEnabled = true -- This makes the mouse icon visible

Taken from this post:

1 Like