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

How to unbind mouse wheel of player from client?

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

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!

2 comments

0

But that doesn't put the camera in first person do that?

0

-1, it locks to first person, not useful, thank you anyways

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