Entity Info script

I used to have this script where you looked at an entity and it would draw its bounding box and 3 colored lines in the center of the prop, representing its orientation. It would also display the entities name/class/color/mass in the corner of the screen.

Does anyone know where I can find this, or can anyone point me in the right direction to try and recreate it?

I didn’t want to make a new thread for this post so yeah.

I am in the process of remaking this script for myself. Right now I want the parent entity of whatever I am looking at to be highlighted/colored red, and return to normal when I look away. So far I have:



local Parent = EYE:GetParent()		
if ( Parent:IsValid() ) then
     Parent:SetColor(255, 0, 0, 200)
end


I am still new, and quite stumped about how to return the parent entity to its original color after I look away. Any help would be appreciated.