How to make pivot look at target?

how can I make it so the pivot of the object look at target
PivotTo() and GetPivot() didn’t work for some reason it just doesn’t look at the target