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

How to set mouse position?

Asked by 8 years ago

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

Mouse.X = VALUE

Does not work because Mouse.X is readonly

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. BlackJPI 2658 — 8y
1
Why would you want to do this? BlueTaslem 18071 — 8y
1
Well you COULD find the person's house and force them to move their arm.... but that could get time consuming. Perci1 4988 — 8y
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 aquathorn321 858 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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.

Ad

Answer this question