--Not the full script
local Players = {}
local Zombies = {}
for i,v in pairs(players:GetPlayers()) do
table.insert(Players,v.Name)
end
table.insert(Zombies ,(Players[math.random(#Players)]))
Depending on how many players there are, a certain amount of players get chosen to be zombies. The problem I am facing is that sometimes the same player gets chosen twice. How would I prevent this?

2 comments
ill answer it in a minute just need to wait until i can answer another question xD
Ah, thanks.