Turns an entity 180 degrees linearly over ten seconds
local startAngle =Angle(0, 0, 0)
local endAngle =Angle(0, 180, 0)
local ratio =0timer.Create("Turn", 0.1, 10, function()
ratio = ratio +0.1entity:SetAngles(LerpAngle(ratio, startAngle, endAngle))
end)