Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

how do i make a group rank script? im making a group place [closed]

Asked by 8 years ago

im making a group training place and im wondering how i can make a rank script

Closed as Not Constructive by evaera

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?

1 answer

Log in to vote
0
Answered by
Notwal 2
8 years ago

Just replace the group ID with your own.

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"
    rank.Value = player:GetRoleInGroup(12345) -- put group id in parentheses

    leaderstats.Parent = player
    rank.Parent = leaderstats

end)
Ad