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
.