How to find local position through the certain axis

I need to animate some cubes for my game but they are oriented differently. I have to find a position certain studs away through the Y axis. I can’t just use a simple position operation because it’s giving me global axis. I need a local axis position for that object. I checked ToObjectSpace() but i couldn’t figure it out if it’s suit for my case or not. Thanks!

To move something in object space by #studs you can do this:

Distance = 3

Part.CFrame = Part.CFrame + (Part.CFrame.UpVector * Distance)

UpVector & -UpVector are unit vectors that represent direction up or down respective to a part’s current orientation.


Oh thank you so much! It’s much easier than i thought.