Alright, I've tried to ask this question 2 times before, but here's what happened: I was halfway done, and I was going to press preview, but I accidentally clicked ask question and had to delete it. I know I could've just edited it, but it would be confusing if you saw a halfway done question on the front page. Also, it takes me a bit to finish the other half. I'm tired of writing this over and over and just want to finish this question and get some answers. Anyways, let's start.
I'm trying to make a admin here. I'm have finished some commands, but I'm having trouble with those commands where you need a player name like Loot_0, 0_tooL, and some others. An example of a command with a player on it is a :kill command which is the command I want. Here's what I want to do: I want to make a command that needs a player. Here is my code:
--Note that I wrote this code on here so there may be mistakes.
local admins = {Loot_0, 0_tooL}
local prefix = "-"
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if msg == prefix.."kill "..PlayerName then
workspace.PlayerName.Health = 0
end
end
end)
Now, at line 7 and 8, I know they have an error, and I want that to be fixed. another thing, I want it so you don't have to type out the full name and not have to put the capitals. One more thing, I want to figure out how to make it so if you say me, others, all, It will kill all, others, or just you.

2 comments
There are lots of threads on this. Google "Admin commands ROBLOX devforum"
I have seen them, but they are really confusing.