#CFrame
CFrame is a data type that represents the part's position and orientation (rotation).
local part = workspace.Part
part.CFrame = CFrame.new(0,10,0)
wait(3)
part.CFrame = part.CFrame * CFrame.Angles(math.rad(45), math.rad(45), 0)
#Welds and CFrame
Any parts connected by welds or other attachments will all move as one unit when you change the CFrame of one of the parts. You can use this with your welded parts to move them all as one. Just note that the part you're moving is going to act as the "center" of everything you're moving. If you move a part on the way right and change the CFrame of that, the part on the way right will be teleported to that position and orientation. All the other parts connected will move in relation to part on the right.
#Final Product
You can anchor all your parts now and they will still move together. No body movers needed.
script.Parent.Changed:Connect(function()
local XPosition = script.Parent.Position.X
local ZPosition = script.Parent.Position.Z
script.Parent.CFrame = CFrame.new(XPosition, 13.376, ZPosition)
end)
Hope it helps!
3 comments
Why can't you anchor it?
I have some welded parts, when i anchor it, they dont move along with the object
I said to anchor all your parts in my answer.