How to make a Parts Children teleport with it?

So I have a Part which I teleport by changing its Position Property, and it has a few parts in it which should automatically stay attached to the main part.

But once I change the .Position property of the main part it is the only part which is changing positions. Should I weld its children to itself? And if so, how could I do this in a fast matter so that I don’t have to waste multiple minutes welding every single part?

1 Like

ok, something you need to do is to never teleport things with position. Use CFrame.

read up xd

2 Likes

Whats the Issue with just changing its position?

1 Like

By changing it’s position, it just change the position for that one part. If you use CFrame, other parts welded/jointed to it will teleport with it

2 Likes

You can also use MoveTo() with models, or use a PrimaryPart to set the CFrame that way.

2 Likes

Try and use CFrame instead of simply setting the Position property of the part. This is because the Position property will sometimes give odd results as it can’t clip through other parts. Using CFrame will ensure it goes exactly where you want it to go.

Secondly, this allows us to use SetPrimaryPartCFrame. Click on the Model and set the “PrimaryPart” to the central part of the model (the part you mentioned before.)

Now we can do,

Example Code
local model = workspace.Model
model:SetPrimaryPartCFrame(CFrame.new(0, 50, 0))

This will set the entire models CFrame to that given CFrame.

3 Likes