Crash when entering a server

So, i just formatted my computer and decided to play gmod. I can play single player fine, but when i try to join a server the game crashes. Never happened before. Also when it enters, it stutters every 5 seconds. What’s happening?