Find the angle between two points using entities?

I want to find an angle between two points.
Using the entity on the left. I need to find the angle to point at the player.


( player:GetPos() - barrel:getPos() ):Angle() should work to get the angle from the barrel to the player I think