"CharacterAutoLoad = false" still autoloads character one time

HI all ! - I’m going a standard “Play” button/Menu after the game first loads in for the player.

I have a ServerScript that has

players.CharacterAutoLoads = false

Still - it loads the character just ONCE.
After that it works fine - it won’t load a character until they push the PLAY button.

My question: How do I stop it from loading that initial time?

Why not just disable the CharacterAutoLoads in Players without the script? Im not sure how but its possible that your character loads before the script runs.

1 Like

Thank for the response !

Yeah, I did more research after I posted, and I saw that was possible.

Unfortunately, when I tried it, it still does the same thing.

The character appears only once, dies from freefall, then doesn’t appear again until they hit the “Play” button.

Thanks again !

Hm that’s weird. Are you sure there isn’t any other script or plugin that’s messing with CharacterAutoLoads? You can go to View > Find All / Replace All and search for CharacterAutoLoads, that will show you all the scripts that have it in them. You can also check if any script is using require to load some module outside of your game that changes it.

1 Like

I’ll check a around - we know this code pretty well we typed it all in ourselves, mostly. The things we didn’t type in we worked with and altered massively, and know pretty well too. I’ll check. Thanks !

Well, I looked all through everything, even after doing a ctrl-shft-f search for require. There are no modules loaded from outside of my game… all the module calls are to modules withing the explorer tree.

There are also no other usages in the game of CharacterAutoLoads, other than my intentional usage to turn it to “false”. Also, in the explorer folder tree, under Players, “CharacterAutoLoads” check mark box is “off”…

But it still loads in .once, the player dies in freefall …and then it doesn’t load in again until “Play” is hit.

Thanks for the response!

Try destroying the character on spawn until the play button is hit? Hacky solution to the weird problem as a last resort.

1 Like