How do i put scipts into the guns

I just bought gmod and hl2 like a week ago and i need some help on scripting.

Read the tutorials on the wiki.

What he said.

My recommendation is to play the game, learn where things are and what they do, THEN approach scripting via the wiki. There is no way you will master scripting for a game you just bought a week ago.