I don't know why I still can use ;kill Player when Player isn't in admins.
Script:
admins = {"d"}
function findPlayer(name)
for _, player in ipairs(game.Players:GetPlayers()) do
if player.Name:lower() == name:lower() then
return player
end
end
end
game.Players.PlayerAdded:connect(function(plr)
for i,v in pairs(admins) do
plr.Chatted:connect(function(msg)
if msg:sub(1,5) == ";kill" then
victim = findPlayer(msg:sub(7))
if victim and victim.Character then
victim.Character:BreakJoints()
end
end
end)
end
end)

2 comments
You only set it to loop through the table, while at the same time creating multiple anonymous for how many loops it went though! Consider using the 'if' statement?
NEVERMIND! I can be so stupid somethimes, thx for reminding me.