Is there anyway to do like a vice versa instead of :
if alive[1] == "Killer" and alive[2] == "Innocent" or alive[1]== "Innocent" and alive[2] == "killer" then
end
and then still be able to compare values after
if alive[HELP].folder.Protect.Value == 0 then --whoever is innocent
~Context
local alive = {}
for i,v in pairs(data:GetChildren()) do
if v.Status == "Alive" then
table.insert(alive, {folder = v, team = v.Team.Value})
end
end
if #alive == 2 then
-- HERE --
if alive[1].team == "Killer" and alive[2].team "Innocent" then
if alive[whoever is innocent].folder.Guardian.Value == 0 then --whoever is innocent
return (player[1]) -- Killer wins!
else return (player[2]) -- "Innocent wins"
end
elseif alive[1].team == "Guard" and alive[2].team == "Criminal" then
end
again:
- If statement vice versa
- compare value despite order of variables
This is to keep games from lasting forever because neither player can kill each other. And different types of people so it'll be a long list. Looking for an efficient way to code it.

1 comment
What about interchangeable variables afterwards so that I won't have to have 2 lines of the same thing but in reverse order?