local groupID = 12321313 --- ID of the group
game.Players.PlayerAdded:Connect(function(plr) local ldr = instance.new('Folder',plr) -- Creating the leaderstats ldr.Name = 'leaderstats'
local Val = instance.new('StringValue',ldr) -- Creating the value Rank Val.Name = 'Rank'
Val.Value = tostring(plr:GetRoleInGroup(groupID)) -- Setting the value to the players group rank end)
Closed as Not Constructive by Ziffixture
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?