Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to set mouse position?

Is there any way to set the position of the mouse?

Mouse.X = VALUE

Does not work because Mouse.X is readonly

4 comments

0

You would need to create a pseudo mouse cursor and update it's position when the mouse is moved. This could end up being very confusing for the operator though, especially if they were to accidently move thier mouse out of the window while the pseduo mouse was not near any edge of the window.

1

Why would you want to do this?

1

Well you COULD find the person's house and force them to move their arm.... but that could get time consuming.

0

You could center their mouse by changing their camera to first person and back. That's all you can do without creating your oen pseudo mouse

1 answer

You can't

There's a good reason that Roblox doesn't allow you to control user input. Your only real option is to lock the mouse where it is.

This discussion is preserved as it was. New answers, comments, and votes are closed.