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

How do I squish the mouse into the corner?[edited]

Asked by
theCJarmy7 1293 Moderation Voter
8 years ago

So, I was wondering how to put the mouse into the corner of the screen, and just how to move the mouse via script in general. Sort of like this game.

I need to move the mouse.Hit.p, and to do that, I would need to actually take the mouse, is there a way to do that?

2
As far as I know, you can't control the mouses actions through the script. It is meant to prevent you from making players click things they don't want to. (Such as a button to buy something?) Sublimus 992 — 8y

1 answer

Log in to vote
0
Answered by
Vrakos 109
8 years ago

I would have typed my answer as a comment, but it's way too long. I have found some sources for you to research into.

My solution is to hide the original mouse icon through UserInputService.

You can make the guy chase an ImageLabel, which is following your mouse. Learn how to get a users mouse here and how to get the position of the mouse here (click 'Y' under 'See Also').

Ad

Answer this question