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

How to unbind mouse wheel of player from client?

Asked by
nievadev 112
4 years ago

How can I unbind the mouse wheel in client side so the player is unable to neither zoom in or out?

Using either of the Player.CameraMinZoomDistance or the Player.CameraMaxZoomDistance properties doesn't count, as that doesn't answer my quesion.

I'll of course accept the answer.

Thank you very much beforehand!

1 answer

Log in to vote
1
Answered by 4 years ago

There is a way easier way of doing it without having to unbind anything, wich is using the Camera.CameraMode property. Here is how you set it:

local cam = workspace.CurrentCamera

cam.CameraMode = Enum.CameraMode.LockFirstPerson -- makes so you can't unzoom/zoom
cam.CameraMode = Enum.CameraMode.Classic -- makes it able to zoom/unzoom again

Hope this helped!

0
But that doesn't put the camera in first person do that? nievadev 112 — 4y
0
-1, it locks to first person, not useful, thank you anyways nievadev 112 — 4y
Ad

Answer this question