I have a group and I want a billboard GUI to edit a text label inside the billboard GUI to show their rank in the group. However, I can't find anything on how to get their rank in the group. I also want it so if they are not in the group, says ' Guest '. I get stuck on line 7
https://gyazo.com/9bd2b87e8e55b6cc36704e9d027602cf
local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if player:GetRankInGroup then
local clonedgui = billboardgui:Clone()
clonedgui.Name.Text = player.Name
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(223, 255, 11)
clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
end
end)
end)
