local Groups = {13016458,15331112,15332038,15692214,11297312,14565071}
local Ranks = {8, 11, 16, 19, 237, 241, 242, 243, 245, 255}
game.Players.PlayerAdded:Connect(function(plr)
if not plr:GetRankInGroup(Groups[2][3][4] >= Ranks[6]) and plr:GetRankInGroup(Groups[2][3][4] <= Ranks[8]) then
print("You don't have permission to run this command")
end
end)
maybe try something like Groups[1], Groups[2]. When I tried in Roblox studio it also gave the same error, however, this error was resolved when I did that.
It doesn’t work I know what you’ve tried to do but the issue doesn’t come from the tables the issue is from how the :GetRankInGroup reads the table
This doesnt have to do with the :GetRankInGroup this is just how you would something from a table, as I used print(Groups[1][2]) and I still had the same error.
Mhm what I was trying to say is that you can’t take more than one array from the table and try to use altogether without separate it, it’ll just error as it combines two of the arrays together