Move part to location of model

  1. What do you want to achieve? To move a part to the new model location. I have a script that will point to the direction of a part called “LocatorTarget”. But I want to be able to move the part to the location of a random building that is selected. I have a value that stores the name of this called Building in ReplicatedStorage.

  2. What is the issue? I’m not sure how to move a part called “LocatorTarget” to the location of the random building selected.

  3. What solutions have you tried so far? I’ve tried lots of methods but I can’t seem to wrap my small brain around this.

1 Like

part.CFrame = model:GetPivot()

For a brief rundown, :GetPivot() is a method applicable to any model, and it returns a cframe (which is a data object which stores position and orientation).

Setting a part’s cframe to the model’s pivot should work well.