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

Group rank leader broad?

Asked by 5 years ago

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?

0
Hmm leaderstats? I can make you a script if you want voidofdeathfire 148 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 4 years ago

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---------------------------------------
Ad

Answer this question