Each system has its own benefits, but this one is unfinished, the code quality isn’t the best, relies on the game being published, and won’t even correctly account for the case where the game is under a group, in that case game.CreatorId
will return the group ID, so not even the owner of the group can use this on their own game.
if plr.userId == game.CreatorId then -- .userId is deprecated by the way
The commands are also just built into the Chatted
listener, and it’s overall really hard to add your own commands in.
I recommend taking some inspiration from SimpleAdmin, while I don’t use it myself I’ve checked out its API and it allows for easy extension upon the original thing.