https://imgur.com/a/GYWoOJM
The image is an example: Im trying to move it form the white part to the black part
Im trying to find some sort of math equation that takes the orientation of an object and uses it to move the part in that direction
I won't give you a whole script, but I will give you some advice.
A part's CFrame contains multiple Vectors, such as lookVector, rightVector, etc. they can be used like this:
part.CFrame = part.CFrame.lookVector * [number]