When I right click over where I’m moving my mouse, there isn’t a thing that pops up asking “Select UI layer”
So I’m not moving over any UI. I literally have no ideas left of why it’s not working. Please help.
Thanks!
When I right click over where I’m moving my mouse, there isn’t a thing that pops up asking “Select UI layer”
So I’m not moving over any UI. I literally have no ideas left of why it’s not working. Please help.
Thanks!
UI objects have own property dedicated for that already.
“MouseEnter/MouseLeave” and “MouseMoved”
I am aware. However I want to get whenever the mouse is moving when it’s not over a UI object.
You probably have to use UserInputService for that…
Yeah i hate this barebones too;
CAS is checking for Keycode probably while mousemovement is its own thing yk.
Make sure you return Enum.ContextActionResult.Pass
to prevent input sinking.
How would I connect/disconnect it? How would I prevent it from running when I’m hovering over chat or something?
How could I do this?
In the function you bind, return Enum.ContextActionResult.Pass
.
For example:
ContextActionService:BindAction("mouseMove", function(_actionName: string, inputState: Enum.UserInputState, input: InputObject)
return Enum.ContextActionResult.Pass
end, false, Enum.UserInputType.MouseMovement)
RBXSCRIPT SIGNAL CONNECTION
Referance that connection and if you want it gone just do: connection:Disconnect()
CAS isn’t their problem, UserInputTypes are supported, it’s more likely their inputs are getting sunk because they aren’t returning a result.
No luck :C
Do you have something that could be blocking your action?
Try binding it at a higher priority with ContextActionService:BindActionAtPriority()
.
I do not believe that I have anything that might be blocking the action, any way to check?
How do I do that? Do I also put that after “return”?
Edit:
ContextActionService:BindActionAtPriority("lelelelelel", BindToMouseMovementFunction, false, 1, Enum.UserInputType.MouseMovement)
doesn’t work, nor does setting the priority to 100
Disable the Active
property on your UI elements
Didn’t work…
Edit: sorry for the horrible compression. Top right says “active=true”
I can’t reproduce your issue from my own setup, are you sure you have every Active property disabled?
If you are, can you send over a place file so I can find what’s causing it?
Your Freecam script is sinking the input.
Change it to Pass, or increase the priority of your bind.
I obviously didn’t write the freecam script, this is a slightly modified version of roblox’s freecam script. I’m afraid of changing the sink to pass in fear of it messing something up…
However, I tried setting the priority to 100, and to 1, and neither worked. Any thoughts?
Can you show how you’re setting the priority?
right here, the edit