Leaderboard Rank List For Developers and Players with 2 Different Groups

Basically, I am making a rank list like this.

As you can see it works perfectly fine but the only problem is that Im using a Group ID and because I pasted my Group ID it shows my rank but that group Im using is only for my developer team not public members/fans. Here is the script for my group (Developing Group):

game.Players.PlayerAdded:connect(function(player)

local leaderstats = Instance.new(“IntValue”)

leaderstats.Name = “leaderstats”

leaderstats.Value = 0

local Rank = Instance.new(“StringValue”)

Rank.Name = “Rank” --You can change the rank if you want, just remove the “Rank” inside the qoutes(do not delete the quotes), and write something else

Rank.Value = player:GetRoleInGroup(5415819) --Delete “Your Group ID” (without the parenthesis) and enter your group ID there.

leaderstats.Parent = player

Rank.Parent = leaderstats

end)

So as I said, the script is perfectly fine but If I want a Rank for My Public group do I do the same script but my Public group ID or do I have to do another script which is different? Because their 2 group scripts running at the same time and I don’t know if ROBLOX does handle it with 2 scripts or something like that.

Just create another leaderstat with their role in the main group.