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 3f40175 commit 5cd7e5eCopy full SHA for 5cd7e5e
content/en-us/reference/engine/classes/Object.yaml
@@ -155,6 +155,8 @@ methods:
155
`Datatype.BrickColor` property:
156
157
```lua
158
+ local Players = game:GetService("Players")
159
+
160
local function paintFigure(character, color)
161
-- Iterate over the child objects of the character
162
for _, child in character:GetChildren() do
@@ -165,7 +167,7 @@ methods:
165
167
end
166
168
169
- paintFigure(game:GetSerivce("Players").Player.Character, BrickColor.new("Bright blue"))
170
+ paintFigure(Players.Player.Character, BrickColor.new("Bright blue"))
171
```
172
173
Since all classes inherit from `Class.Object`, calling
0 commit comments