Need Help Adding Me And Other Refrences to Admin System

How do i make an admin type in me instead of their name for more efficiency and others to reference everyone else other than the admin? Like for example, “/tp me player2” or “/kill others” I just don’t know how to do this because I don’t really understand how the system works because i built it off of a tutorial that AlvinBlox made:

Firstly, if you don’t understand how the system works, you probably don’t want to be advancing anymore until you do know how it works. Use Roblox’s Creator Documents and go to the API to really understand how components work in scripting, or take a few tutorials from there first.

Or watch explanation videos on YouTube, but I don’t know about those, I don’t use them.

Anyway:


You’d have to use whichever system the tutorial showed to recognise the username in the second argument of the command, and use a similar query to recognise ‘me’ as the LocalPlayer’s username.

Then for ‘others’, you’d use the same set up to recognise the string, and create an array containing all Player names with a loop (update whenever player leaves/joins or whenever ‘others’ argument is used), and remove the LocalPlayer’s username from the array.

Then, once you’ve tested that commands can recognise ‘others’, the commands will need to loop themselves for each player in the list.


If you want, and if no one else does before I do, I can have a shot at editing and annotating the code to create this, but I can only do that tomorrow and it probably won’t be perfect.

Best of luck :+1: