Hi all,

I need help with a GUI, I’m trying to make. So I’m having trouble with this part:

For example, an overhead GUI with the player’s name and below that is the group rank that will show if the player is in the group’s team inside the game.

Like, if Team A has a team and a group and the player is in the group and team the overhead player GUI will turn to the respective team’s colour and display the group’s rank that the player has.

Thanks. My current script for it is:

wait()


local Character = script.Parent
local NameTag = script:FindFirstChild("NameTag")


local GroupID = 4671005

local NameTagClone = NameTag:Clone()
NameTagClone.Parent = Character:FindFirstChild("Head")
NameTagClone.Adornee = Character:FindFirstChild("Head")
NameTagClone.Frame.Username.Text = Character.Name
NameTagClone.Frame.GroupRank.Text = game.Players:GetPlayerFromCharacter(Character):GetRoleInGroup(GroupID)

2 comments

0

im a bit rusty on scripting. Are you sure that ' :GetRoleInGroup' exists?

0

Well I tried it and it works so I think so.