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

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

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?

1 comment

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?)

1 answer

✓ Accepted answer

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').

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