I’m writing a script (function) that will return an array of whether or not a player is in a specific group in a larger list of groups. Let me explain, I get it’s confusing.
We will have our groups. In my case, there’s about 15
GroupA = 1
GroupB = 2
GroupC = 3
What I want is a function that will do this
local function = groupcheck(player)
local grouplist = {}
if player:IsInGroup(GroupA) then
table.insert(grouplist, GroupA = true)
else
table.insert(grouplist, GroupA = false)
end
-- And repeat for all the groups
end
Then back at the main code
groupcheck(player)
return grouplist
-- Then here be able to check which groups the player is in and which ones they aren't.
-- Like, in grouplist, if player is in group A and B BUT not in group C. Or Is in C but not A and B
This is all concept, all help is greatly appreciated