I’m trying to make an object pick up system like gmod where you can move the part wherever you want but i want it to keep it’s orientation and move with the camera, so that it appears to the player that the orientation hasn’t changed.
Right now, when you pick up an object and move the camera, the object always keeps it’s original orientation which looks weird.
you can use CFrame.fromMatrix to make a cframe from the given 4 vectors
(pos, xVector, yVector, zVector)
the other 3 are vectors for orientation, use this function to make a cframe with a new position but old xVector, yVector and zVector
But, how would i get the 3 orientation vectors like i said i wanted them, the original orientation but it rotates with the camera, i don’t want the orientation to be fixed, that’s the problem.
Kinda, the part keeps it’s orientation, but when i move the camera the part moves with the camera’s orientation, for example: i have a part facing north, when i pick it up it will still face north and when i face west it will face west but right now when i face west it will still face north.
It didn’t work, the part just spins rapidly and it doesn’t move. I got the part to move but the orientation is always fixed, i want the orientation to be the camera’s orientation and be it’s original orientation at the same time.