Basically, there is an overhead rank gui, it works fine and all on the player added event however I am unsure how I change it after with a different group.
local Player = game.Players.LocalPlayer
Player.CharacterAdded:Connect(function(Character)
if Player.Team == "Police" then
local pdId = grouprankhere
local pdname = script.NameGUI:Clone()
pdname.Parent = Character.Head
local pdrank = script.RankGUI:Clone()
pdrank.Parent = Character.Head
local namelabel = pdname.TextLabel
local ranklabel = pdrank.TextLabel
local PlayerRank = Player:GetRoleInGroup(pdId)
namelabel.Text = Player.Name
ranklabel.Text = PlayerRank
end
end)

6 comments
Just so you know, the player can only join the team if they are in the group.
btw your pdId variable should be the ID of your Group and I think it should be all good
I know It is meant to be that, I changed it for privacy issues on here
I get an error however saying that its index nil with character.added
LocalPlayer pointers are only available to the Client, as the Client has an affiliated Player Object. The Server is far from a Client.
Oh, so how would I approach this?