I trying to make the car look at something and move it at the same, how can I do that? Those are my current methods that change orientation and position.
local direction = tweenservice:Create(car, TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { CFrame = CFrame.new(car.Position, p1.WorldPosition) })
local move = tweenservice:Create(car, TweenInfo.new(speed, Enum.EasingStyle.Linear, Enum.EasingDirection.In), { Position = p1.WorldPosition })
However p1 doesn’t have proper orientation. So the car stays in the incorrect orientation. That’s why I am trying to make the car look at the p1 position.
it sets the position of the car to the attachment. Since the attachment doesn’t have a proper orientation it creates a new orientation for the car based on the attachment’s WorldOrientation in radians.