Goal: If the player’s group rank is above 0, they should have a star emoji above their head.
Setup:
Script:
game.Players.PlayerAdded:Connect(function(player)
local overheadClone = overhead:Clone()
player.CharacterAdded:Connect(function()
local character = player.Character or player.CharacterAdded:Wait()
overheadClone:FindFirstChild("Name").Text = player.Name
overheadClone.Rank.Text = player:GetRoleInGroup(5127121)
overheadClone.Parent = character.Head
if player:GetRoleInGroup(5127121) >= 0 then
overheadClone.Emoji.Visible = true
end
end)
end)
And if you prefer reading it in the roblox layout: