Hello, i have here a rank system, and i want to get the next rank of it, just to inform the player his next rank hes going to achieve
My rank system update system:
function updateRank(Char,Plr)
local Ranks = {
{"Normal Ant", 5},
{"Experienced Ant", 9},
{"Pro Ant", 15},
{"Epic Ant", 19},
{"Legendary Ant", 25},
{"Semi-God Ant", 30},
{"God Ant", 50},
{"Ultra God Ant", 70},
{"The Best Ant", 95},
{"Titanium Ant", 125},
{"Gold Ant", 150},
{"Heaven Ant", 200},
}
if Char and Plr then
local Gui = Char.Head.RankGui
for NumberForRank, Rank in pairs(Ranks) do
if Plr.leaderstats.Food.Value >= Rank[2] then
Gui.Rank.Text = Rank[1]
end
end
end
end
