I made a gravity gun script using align orientation and I want to make it so the part itself faces the camera. But I want it to also use the same rotation that it started with.
Is there any possible way to make align orientation rotate along with the camera, without changing its original rotation? I’m very new to using align orientation so I’m having a tuff time.
as you can see my part is unaffected by the camera and i’m pretty stumped.
Here is the part of the script that creates the orientation. If you’re curious on how its positioned, I used an align position (I don’t know if it’s relevant so I didn’t bring it up)
local orient = Instance.new("AlignOrientation")
orient.Mode = "OneAttachment"
local gyroattach1 = Instance.new("Attachment")
function addbodygyro(grav)
gyroattach1.Parent = grav
orient.Parent = grav
gyroattach1.WorldCFrame = CFrame.new(gravtarget.Position)
orient.Attachment0 = gyroattach1
orient.Responsiveness = 50
print(gyroattach1.Parent)
end