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

Moving Objects In Family Tree?

Asked by 10 years ago

Is this even possible?

like game.Workspace.Item.Move = game.StarterGui?

2 answers

Log in to vote
1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
10 years ago

This is possible by setting the Parent property of an Object to the specified location.

When you Parent something, it's holder becomes what you set it's parent to. The object is stored in that location.

So, using your example;

workspace.Item.Move.Parent = game.StarterGui
Ad
Log in to vote
0
Answered by 10 years ago

Use

game.Workspace.Item.Parent = game.StarterGui
0
Cool, I was just wondering. RexSays 0 — 10y

Answer this question