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

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

Asked by 4 years ago
Edited 4 years ago

[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

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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
Ad

Answer this question