UserInputService:GetMouseLocation()

The code sample on this page claims that it automatically sets a GUI to the user’s mouse position. However, this is not the result the code produces because the code does not take the GUI inset in to account.

This code sample should either utilize the GetGuiInset method of GuiService or mention the IgnoreGuiInset property of ScreenGui.

7 Likes

Hey! Thanks for this report. I’ve just logged it, and the team will get to it when they can. :slight_smile:

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.