How can I return selected players in a table? I'm currently making an admin script.
There's a script that sees if the player exists.
function ReturnPlayers(AdminPlayer, Text)
local Players = {}
if whatever then table.insert(Players, plr.Name)
return Players
end
This script calls for it and checks for it.
if ReturnPlayers(Player, string.sub(Message(7))) then
--do stuff
end
For example, how can I remove a leg of all the players selected? I'd really appreciate if someone could help me or redirect me somewhere.]
I also removed some of the code because it's not the main focus and just took up space in this question.
