local tablewithroles = {
[255] = {RoleText = "Owner"},
[240] = {RoleText = "Admin"},
}
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(char)
local Head = char.Head
local BillboardClone = yourpathtobillboardgui:Clone()
local GroupId = --your group id
BillboardClone.Parent = Head
for i,v in pairs(tablewithroles) do
if v[tonumber(Player:GetRoleInGroup(GroupId))] then
BillboardClone.TextLabel.Text = v["RoleText"]
else
BillboardClone.TextLabel.Text = "Player"
end
end
end)
end)
local GroupID = 00000000000000
local RankRequirement = 255
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
if Player:GetRankInGroup(GroupID) == RankRequirement then
local GuiToClone = game.ServerStorage.BillboardGui:Clone()
GuiToClone.Parent = Character:WaitForChild("Head")
end
end)
end)
You can use my old script to automatically show rank based off of group rank. It shows everyones rank and if they aren’t in the group by giving them a Guest Rank. That requires you to create a second billboardGUI though. Let me know if you have any questions
– Keep this script in ServerScriptStorage
– Store Your BillboardGUIs in serverstorage
– Change the Names to match mine or edit the script to match yours
local groupId = 4759895 – Change it to your ID
game.Players.PlayerAdded:Connect(function(player)
if player:IsInGroup(groupId) == true then
player.CharacterAdded:Connect(function(characterMember)
local RankName = player:GetRoleInGroup(groupId)
local MemberTagBillBoard = game.ServerStorage.BillBoards.MemberGui:Clone()
MemberTagBillBoard.Parent = characterMember.Head
local TextLabel = MemberTagBillBoard.TextLabel
TextLabel.Text = RankName
end)
else
player.CharacterAdded:Connect(function(characterGuest)
local GuestTagBillBoard = game.ServerStorage.BillBoards.GuestGui:Clone()
GuestTagBillBoard.Parent = characterGuest.Head
end)
end
end)