Rethink this, it's not currently very useful. The issue is that commands aren't processed currently if the profile's connection to the game is open. If the game auto connects the autoexec sometimes fires and works and sometimes fired and aren't processed because the connection to the game isn't open (race condition).
One of two things should occur (or, both):
1.) Convert this to be a Lua Event instead that gets executed. This would skip the command interpreter unless lua.Send was called but would allow the user to run setup commands.
2.) Allow commands to process even if the connection isn't open and just let the network commands error if they're called.
Rethink this, it's not currently very useful. The issue is that commands aren't processed currently if the profile's connection to the game is open. If the game auto connects the autoexec sometimes fires and works and sometimes fired and aren't processed because the connection to the game isn't open (race condition).
One of two things should occur (or, both):
1.) Convert this to be a Lua Event instead that gets executed. This would skip the command interpreter unless
lua.Send
was called but would allow the user to run setup commands. 2.) Allow commands to process even if the connection isn't open and just let the network commands error if they're called.