I have two items: a model and another model. I want the model’s orientation to always be the same as the other model’s orientation. Unfortunately, by changing the CFrame, it just keeps adding the orientation and makes the model spin.
while wait() do
local x, y, z = workspace.OtherModel:GetPivot():ToOrientation()
local main = workspace.MainModel:GetPivot()
workspace.MainModel:PivotTo(main * CFrame.Angles(x, y, z)) --This makes the model spin
end
I got it to work. Unfortunately, it does nothing, as both parts are anchored and it is not an option to unanchored them. Any thoughts on how I can work around it?
I tried working with ToWorldSpace() that I have read about from the link you’ve sent – it returned the same result, spinning. What do you mean by “calculation”? Can you be more in detail?
Also, I need to be multiplying the CFrame in order to change the rotation, adding it would change the position.