Hello everyone! I am trying to figure out how to make a group rank name in a game. Here’s a screenshot of what I mean:
The Issue
The issue I have noticed is that when I have tried this, I haven’t been able to figure out how to link it to the group, or anything. If anyone could help, please do!
Say you have a BillboardGUI that has a textlabel in it called “PlayerName”
Here is some code:
localscript
repeat wait() until (game.Players.LocalPlayer)
if (game.Players.LocalPlayer:GetRankInGroup(groupId) ~= 0) then
local ui = script.BillboardGUI:Clone()
ui.PlayerName.Text = game.Players.LocalPlayer.Name
ui.Parent = game.Players.LocalPlayer.Character:WaitForChild("Head")
end