if string.lower(string.sub(msg,1,5)) == "kill/" then
for CheckForNames = 1,#Game.Players:GetPlayers() do
if string.lower(string.sub(Game.Players:GetPlayers()[CheckForNames],6,#string.sub(msg,6))) == string.lower(string.sub(msg,6)) then
Game.Players:GetPlayers()[CheckForNames].Character:BreakJoints()
end
end
end
Bad argument #1 to 'sub' (string expected, got userdata) |