So I’m working on a game, and I want to use the “I” key to open the inventory, but this is currently being used by Roblox to zoom the camera in and won’t toggle my inventory, how would I disable the zooming?
The only ways of achieving this that i can think of is:
-
Setting StarterPlayer’s properties MaxCameraZoomDistance and MinCameraZoonDistance to the same number/value. Though this will prevent player to zoom in and out.
-
Make the game first-person only, so players can’t zoom in and out. (Same cons as way above)
There might be other ways of achieving this that i don’t know about though.
This would be very useful, though it seems that “I” and “O” aren’t in the action bindings.
They are…
wait(3)
local CAS = game:GetService("ContextActionService")
CAS:UnbindAction("RbxCameraKeypress")
Put this in StarterPlayerScripts
This is bound by the default camera control module
8 Likes
This worked, thanks for the help.
1 Like