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

[Solved] How do you move parts to have a different parent?

[Nvm about it, I spelt workspace wrong!]

I have been trying so hard but I can't find a way to script the part to move to have a different parent. Any help?

local MovingClickDetector = game.Wrkspace.MapDoor1.Door.ClickDetector
MovingClickDetector = game.Workspace.MapDoor1.Door4

1 answer

✓ Accepted answer

It just like setting others property This is how u do it:

local p = script.Parent -- Let's say the script is inside a part
p.Parent = workspace

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