Me and my friend are making game with two group. How do we get the leader broad to say which group we’er in and what rank we are?
COMMUNITY QUESTION
Group rank leader broad?
1 answer
So I thought I might as well answer your question after making the script I hope your group does well I also added a lot of explanation in the script
local groupID = "" --Insert Group ID
local groupID1 = "" --Insert Second Group ID
game.Players.PlayerAdded:Connect(function(player)--Checks when players join
local group1 = Instance.new("Folder",player)--Creates Leaderstats
group1.Name = "leaderstats"--Name
local value = Instance.new("StringValue",group1)--Creates StringValue
value.Name = "Rank" --Creates Name for Stringvalue
value.Value = player:GetRoleInGroup(groupID)--Checks the name of the role for the group
local value2 = Instance.new("StringValue",group1)--For second group{
value2.Name = "Rank"
value2.Value = player:GetRoleInGroup(groupID1)--{
end)
--------------Created by Voidofdeathfire---------------------------------------
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Hmm leaderstats? I can make you a script if you want