Why isn't this working in autorun?

NVM FAM

What I would assume you are doing is backdooring an addon. Don’t do that. It WILL get removed from the workshop and make you look like an asshole. Secondly, you shouldn’t create global functions unless you need to. It might not be working because the player is not valid yet. Try adding a timer of a few seconds.