Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Changing parents of objects?

How do I change the parent of an object?

3 answers

Here you go, hope this helps.

  1. Find the part, such as...
TestPart = Workspace.TestPart
  1. 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.

while (true) do
game.Workspace.Part.Parent = script.Parent
wait(5)
game.Workspace.Part.Parent = game.Workspace.Part1
return
end

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

This discussion is preserved as it was. New answers, comments, and votes are closed.