I'm creating a sort of admin script, and I need this function to get only one player.
for i,v in pairs(game.Players:GetPlayers()) do
if v.Name:sub(1, #find) == find then
table.insert(players,v)
end
end
Ignore the second line for the most part, basically I get all the players, and then if someone does something like ;kill b it would find a player's name starting with b, but if multiple people's names began with b it would get them all. How do I after the second line pick only one of all the players, and if it's only one then just do it on them?
