How To Set New Origin

How do you set the origin of an object? By this, I don’t mean turning point or anything, but the actual data itself. For instance, an object is at 123, 456, 789, and I want to set that to 0, 0, 0, but keep it at the same position, so when I tell it to go to 0, 0, 0, it goes to 123, 456, 789 in world coordinates. Is there a way to do that? Specifically, I’d like to change the orientation of a model from 0, 0, 0 to 0, 0, 90.

What you are trying to say is “Getting the CFrame relative to another CFrame”

Roblox has built in functions to do this, although you can just use math.

The functions are :

Here’s the tutorial page
Here’s the API page

1 Like