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

How to get BindableAction working with mouse movement?

Asked by
CyDave 42
3 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

Have this setup to print "moved" when the player moves their mouse but isn't doing anything

local function FunctionToRun(actionName, inputState, inputObject)
    print("moved")
    print(actionName, inputState, inputObject 
end

game:GetService("ContextActionService"):BindAction("MoveToMouse", FunctionToRun, false, Enum.UserInputType.MouseMovement)

Answer this question