Group Game Member Title

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: image

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!

Umm, referencing Discord in game is not allowed.

Also, to answer your question.
You should read this.

1 Like

Didn’t mean to refference the discord. Meant to clip it out. Let me edit that.

1 Like

Oh! That wasn’t my game. That was the onesies group.

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

You can use this

local player = -- the player you want to get 
local groupId = -- the id of your group
local role = player:GetRoleInGroup(groupId)

How exactly would that give them the title?
Even though I already solved it :slight_smile:

Oh ok I thought you meant that you want to get their rank name in the group

But you just wanted to tell if they are in the group, then you can just use this

if player:IsInGroup(groupId) then