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

What is game's parent?

Asked by 9 years ago

I was going to enter

game.Players

but hit enter on

game.Parent

What is game's parent and how do you use it in context?

2 answers

Log in to vote
2
Answered by 9 years ago

Try this in your command bar in Studio:

print(game.Parent)

If you did it correctly, it will print nil, which means there is no parent of game and there is nothing you can do to manipulate game's parent as it is non-existent.

Ad
Log in to vote
0
Answered by
ImageLabel 1541 Moderation Voter
9 years ago

game itself is a global variable used to reference DataModel, the genesis of ROBLOX's hierarchical structure. All instances and services of your game are all descendants of DataModel. It's pretty much the first ancestor, and has not parent itself.

Your script would indeed output nil because game has no Parent.

Answer this question