This is my code that’s supposed to change the CFrame of ‘clone’ (a cloned model that’s now in the workspace).
In line one it places the model in front of the humanoidRootPart. Line 2 changes the Y axis of the position. (position is just another varible)
Without line 2 (its floating but facing the humanoidRootPart):
With line 2 (its not floating anymore but its also not facing the humanoidRootPart anymore):
How I want it to be (not floating and facing the HumanoidRootPart) :
How do I place the model on top of the part below (position variable) without reseting the facing direction?
I believe the orientation is changing because constructing a new CFrame and just passing positional values will yield no special settings for CFrame’s angular matrix.
You can actually simplify this code a good bit using CFrame.new(vec3 pos, vec3 lookAt):