Issue on ToWorldSpace & ToObjectSpace with Different Orientation

So i tried to solve this problem, so i place a object to a base named A with orientation 0,0,0 and save the object cframe with ToObjectSpace and :components() , once i reload the data with different base named B but this B base orientation is 0, 180, 0 this is the problem ToWorldSpace it made the object not to be expectation and precist. how do i solve this?

save object location:


load object from saved location:

1 Like

So do you want base B to be oriented to 0,0,0 or 0,180,0? You said that’s the problem, but you aren’t clear about which one you want to happen.

Are you trying to place all the items with the same orientation, or do you want the object’s rotation to align with the world rotation?

If you set the Pivot of the model with the Pivot Editor it may help.
Or place a Part at the orientation you want for the Model and make the Part the PrimaryPart of the Model.

Why are you using ToObject and ToWorld anyway? Why not just use ToWorld for both?

i also already tried :PivotTo(…) before then i try with .CFrame = …

a sandbox/plot system like Restaurant, Build a city, etc.

No, in Studio in the Model tab there is the Pivot Editor. You can rotate the Pivot of the Model 180 degrees (or whatever angle you want) manually.

this issue solved by adding cframe angles

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.