Billboard gui on a player

you can just setup table with roles

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)

that should work on the player now?

wait lemme change it a bit :)))

ok, its just for 1 role in the group for the billboard gui

Basically the numbers in the table is the RoleID

Assuming from the OP & Image here:

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)
3 Likes

yeah, where do i put the group id?

ServerScriptService inside of Script

ok! will do thanks ill see if i can get it working

BillboardClone.Parent = Head

this seems to have a red line where = is

forgot to add two ends try it now.

And also dont forget to add your GroupId.

image

You forgot to add your groupid to the local variable on line 9 and also please copy my new code that I’ve edited.

ah sorry, it didnt show up that you edited it.

ok! i dont see any errors ill test it out now

You also should probably change the

BillboardClone.TextLabel

to path to your TextLabel

image i think something didnt go right

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)

Can you please show me the output?

there doesnt seem to be anything in the output