Basically I have a part that tweens to the camera’s orientation, and whenever it collides with the ground, or anything, it messes up and creates a offset of some sort, and it doesnt face the camera’s orientation anymore.
Code:
local camOrientation = Camera.CFrame-Camera.CFrame.Position;
local tweenInfo = TweenInfo.new(1)
local tween = ts:Create(Scanner, tweenInfo, {CFrame = CFrame.new(Scanner.Position)*camOrientation})
tween:Play()
seems interesting, but i feel like thats a bad practice, i was thinking of using a bodygyro, and make a equation of some sort to make the bodygyro face the camera’s orientation
but i dont know how to make the equation, can anybody help?
current code:
local camOrientation = Camera.CFrame-Camera.CFrame.Position;
local tweenInfo = TweenInfo.new(1)
local tween = ts:Create(Scanner, tweenInfo, {CFrame = CFrame.new(Scanner.Position)*camOrientation})
tween:Play()