Basically, I have a table and two variables.
game.ServerStorage["Give Items"].Event:connect(function()
players = {}
Assassin = ""
Protector = ""
And I have it so it gets the players.
function GetPlayers()
for i,v in pairs(game.Players:GetChildren()) do
table.insert(players,v)
end
end
So, then, I continue to get the Assassin and the Protector.
function SelectPlayer()
local num = math.random(1,#players)
Assassin = players[num].Name
table.remove(players, Assassin)
print('Assassin is: ' ..Assassin)
end
And the table.remove won't remove him from the table, it said it expected a number, not a string. Help?

1 comment
It still said it calling for a number.