game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
for i, v in pairs(Ranker) do
if v == plr.Name then
if string.sub(msg, 1, 5) == "/rank" then
for i, v in pairs(Ranks) do
if v == string.sub(msg, 7, 10) then
if game.Players:FindFirstChild(string.sub(msg, 12)) then
game.Players:FindFirstChild(string.sub(msg, 12)).leaderstats.Dienstgrad.Value = v
end
end
end
end
end
end
end)
end)
I made a command system with the command “/rank ”. How can I make so its possible to rank multiple players in one command? Ex.: /rank OR-1 ByGermanKnight, Builderman, Robloxuser123