How do I change the parent of an object?
COMMUNITY QUESTION
Changing parents of objects?
3 answers
Here you go, hope this helps.
- Find the part, such as...
TestPart = Workspace.TestPart
- 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.
