Ok, so, I have this script that changes the rank tab according to their rank when they equip a uniform through a locker I have. The script works as it should but I have many rank tabs and I would like to make it a table, a table that will have both the rank tab ShirtGraphic ID and the rank needed to get the rank tab and a piece of code that will read the table and assign the specific rank tab. Here is a piece of code I made but that requires me to add each rank manually.
local group = 3264905
script.Parent.Changed:Connect(function()
local character = script.Parent.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if player:GetRankInGroup(group) == 1 then
script.Parent.Graphic = "http://www.roblox.com/asset/?id=5035388574"
end
end)

4 comments
you mean something like local Hi = { Rank = 1, Text = "Rank Epic 1" } but for all ranks?
well, i want the table to have both the ID for the rank tab and the rank ID and a piece of code that reads the rank ID from the table and then the shirt ID and adds it to the Graphic part
just something so i won't have to repeat the if statement for each rank
answered with something i think MIGHT work