I have a table from which I’m randomly selecting a value and need to set all but that value to something, my only problem is I am unsure of how to access the rest of the table that I passed by whilst randomly selecting a value from it. I am using a for in pairs loop and the way I have it written it can only select whatever is indexed after the randomly picked value.
for i,v in pairs(players) do
local lol = math.random(0,100)
if activekiller == false and lol > 95 then
killerselected(v)
elseif activekiller == true then
citizenselected(v)
end