Scripting HL2 and/or Ep2 animations

I’ve had problems with animations lately when it came to testing my scripts recently, and through searching it seems Garry’s Mod doesn’t handle animation scripts on it’s own for NPCs or player models. So I was wondering how to incorporate animation content from Hl2 and Episode 2 content to Garry’s Mod via Lua. I’m not asking for coding hand-outs or anything, I’m just looking for perhaps an explanation or directions that could lead me to figuring it out.