I have a server-side anti-cheat that checks on body scales and humanoid properties, using PlayerAdded and GetPropertyChangedSignal. It works alright so far.
However, it blocks changes from admins such as Adonis, the admin I used to test the script itself. I plan to extend the blocks to no-clipping, teleporting, and similar exploits, but I want the admin users in the game to still be able to use these.
As of the moment, I’m thinking about adding another array containing whitelisted users, but that would unnecessarily double the work.
What methods can I use to achieve the whitelist of legitimate admins? Or if possible, is there a way to yield an array from the existing admin module? I’d greatly appreciate any help.