ContextActionService over-ride

I’m new to using context action service I usually use UIS, I bound a function to the left and right mouse buttons to pick up mouse inputs. But now when I try move the camera with the right mouse button it doesn’t work? It’s like I overrode a function, it works fine when I disable the script so I assume its CAS.

ContextActionService:BindAction("Mouse1", Controls.Sort, true, Enum.UserInputType.MouseButton1)
ContextActionService:BindAction("Mouse2", Controls.Sort, true, Enum.UserInputType.MouseButton2)
2 Likes

I’ve just run into this same problem. A solution would be much appreciated

Binding the action via ContextActionService is blocking the handler in the default camera controller. Returning Enum.ContextActionResult.Pass from your MouseButton2 functions should allow the input to be passed onto the default handler.

10 Likes

Super, thank you :slight_smile: