Player aim entity and aim position?

Hello, I’m wondering how would I accomplish getting the entity and/or position that the player is looking at? Can someone please give an example as I’m no good with traces.

ply:GetEyeTrace().Entity
ply:GetEyeTrace().HitPos

Ah, thank you good sir.