Help with this backwards thing

HELLO! I’m trying to make a dummy walk backward or the opposite way when you are too close!!!
YES! It works, yet he sometimes does it sidewards I’m stupid at coding so anything would help!!!

local calculated = -(5 - (hrp.Position - ohrp.Position).Magnitude)
hum:MoveTo(CFrame.new(hrp.Position) * calculated)