CODE -
local HS = game:GetService("HttpService")
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function()
local Character = Player.Character
local gui = script.NameGui:Clone()
gui.Frame.PlayerName.Text = Player.Name
gui.Frame.PlayerName.TextColor3 = Player.TeamColor.Color
gui.Frame.PlayerRank.Text = Player:GetRoleInGroup(Player.Team.groupId.Value)
if Player.Team.Name == "Civilian" and Player:GetRankInGroup(Player.Team.groupId.Value) == 0 then gui.Frame.PlayerRank.Text = "Visitor" end
gui.Parent = Character.Head
--Honours handling
local honours = HS:JSONDecode(HS:GetAsync("https://api.trello.com/1/lists/5dd98bade3fc0678a33d9f7e/cards?key=REDACTED&token=REDACTED"))
for _,plr in ipairs(honours)do
if plr.name == Player.Name.." - "..Player.UserId then
gui.Frame.PlayerName.Text = plr.desc
end
end
end)
end)
If you have a title on the trello board, It both the username AND the title shows. https://gyazo.com/c1f981b759df5b4177af16d409f06380
How do I make it so only the title shows, if they have a title, instead of the actual username?
