Hello guys,
I wanted to ask how I can make it so that targetRotationSpeed always rotates from the front of the part. So no matter how the part is rotated on an axis, it should always rotate from the front side of the part.
local lookVector = partsModel.PrimaryPart.CFrame.lookVector * speed
targetSpeed = targetSpeed + Vector3.new(lookVector.X * speed, 0, lookVector.Z * speed)
if targetRotationSpeed.X > -0.7 then
print(targetRotationSpeed.X)
targetRotationSpeed = targetRotationSpeed + Vector3.new(-rotationSpeed, 0, 0).Unit
end