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

Changing parents of objects?

Asked by 10 years ago

How do I change the parent of an object?

3 answers

Log in to vote
1
Answered by
gkCode 10
10 years ago

Here you go, hope this helps.

1) Find the part, such as...

TestPart = Workspace.TestPart

2) Now set the parent to what you want.

TestPart.Parent = game.Lighting

There you go! You can set the parent of scripts, parts, and a lot of other stuff, too.

Hope this helps! Message me, gkCode, on ROBLOX if you need help.

Ad
Log in to vote
1
Answered by
Prioxis 673 Moderation Voter
10 years ago
while (true) do
game.Workspace.Part.Parent = script.Parent
wait(5)
game.Workspace.Part.Parent = game.Workspace.Part1
return
end
Log in to vote
1
Answered by
4Bros 550 Moderation Voter
10 years ago

game.Workspace.partyouwantochangetheparentof.Parent = game.Workspace.newparent

Answer this question