Get Mouse Input while it's Locked using UIS

I’m trying to get the movement of the mouse, while it’s locked to the center of the screen using:

uis.MouseBehavior = Enum.MouseBehavior.LockCenter --uis is Game:GetService("UserInputService")

I can’t seem to get the movement while it’s locked, since the X/Y is always the center of the screen, and can’t move.
Basically, I want to check when they move it to the left, etc. Except, I can’t check for mouse movement because it can’t move.

I’ve searched for around 30 minutes and haven’t been able to figure anything out, and I asked for help on the Roblox discord server, just to be ignored.

Have you tried UserInputService:GetMouseDelta()?

1 Like

Oh my gosh thank you so much. I’ve never even heard of GetMouseDelta before. Thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.