We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42432ea commit bde4c37Copy full SHA for bde4c37
content/en-us/reference/engine/classes/GuiObject.yaml
@@ -1417,11 +1417,14 @@ events:
1417
of the user's mouse relative to a GUI element:
1418
1419
```lua
1420
+ local Players = game:GetService("Players")
1421
+
1422
local CustomScrollingFrame = script.Parent
1423
local SubFrame = CustomScrollingFrame:FindFirstChild("SubFrame")
1424
- local mouse = game:GetSerivce("Players").LocalPlayer:GetMouse()
- function getPosition(X, Y)
1425
+ local mouse = Players.LocalPlayer:GetMouse()
1426
1427
+ local function getPosition(X, Y)
1428
local gui_X = CustomScrollingFrame.AbsolutePosition.X
1429
local gui_Y = CustomScrollingFrame.AbsolutePosition.Y
1430
0 commit comments