i have a code, which gets the angle difference between two bricks, the problem im having is that the result is always positive both when the difference angle difference is left and right, how do i make it so that when it rotates right it shows a negative value and left shows a positive number? (im also getting an -nan(ind) )
local car = script.Parent.Car.Value
car.Wheels.FR:WaitForChild("Base")
car.Wheels.FR:WaitForChild("Arm")
while wait() do
local angle = math.acos(car.Wheels.FR.Base.CFrame.lookVector:Dot(car.Wheels.FR.Arm.CFrame.lookVector))
car.Misc.Wheel.W.W.CurrentAngle = angle*math.rad(720)
end
