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

Is there any way to get the mouse's position in pixels and on screen?

Asked by 6 years ago
Edited 6 years ago

I'm trying to get the mouse's position on the screen and not the game, but I've looked at the API reference and I can't find anything related to this. Any help would be appreciated!

1 answer

Log in to vote
0
Answered by
Avigant 2374 Moderation Voter Community Moderator
6 years ago

Try this:

http://wiki.roblox.com/index.php?title=API:Class/UserInputService/GetMouseLocation

Alternatively, these also exist, but I wouldn't use them:

http://wiki.roblox.com/index.php?title=API:Class/Mouse/X

http://wiki.roblox.com/index.php?title=API:Class/Mouse/Y

0
Thank you so much! brokenVectors 525 — 6y
Ad

Answer this question