So I have a leveling system and I have a modulescript that has all the ranks with their needed levels. I don’t know how to approach this but I don’t know how to script it so it detects the players current level and then checks through all the levels in the module script and assigns the rank with the level?
u can assign the rank by looping through an array
local RankTable = {
{Level = 5, Rank = "Rookie"},
{Level = 10, Rank = "Pro"},
{Level = 20, Rank = "Expert"},
}
for i,Data in RankTable do
if plr.Level.Value >= Data.Level then
plr.Rank.Value = Data.Rank
end
end
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.