Wierd gamemode error?

I’m getting this error with my sandbox roleplay gamemode. I’ve never heard of seen this error ever and i have no idea to fix.

Here’s the error

 ERROR: GAMEMODE:'PlayerSpawn' Failed: sandbox/gamemode/init.lua:40: stack overflow 

Also, To make it easier if you can solve, I uploaded my entire gamemode to garrysmod.org, Here’s the link

I’d like to get this sorted out but i don’t know what to do.


I’m getting off for now, If anyone can help, I’d appreciate it a bunch!

just post the whole of init.lua

If you have code troubles it’s just easy to use a pastebin

Yeah i know, but the error is coming from sandbox. Here let me paste bin MY init.lua



I’d like to get this sorted out if anyone can help