Hey! I’ve got a pretty basic script right now, it just simply shows a players name, and rank. However, I’m trying to edit something a little bit.
Essentially what I want is this;
Let’s say a players rank was ‘[DEV] Developer’
Instead of showing ‘[DEV] Developer’ as their rank;
I’d like it to remove the first 6 letters of every rank, showing the rank as ‘Developer’ instead.
Is there anyway to do this besides just checking for the rankname and changing it manually for each rank?
This is what I have so far:
local overhead = script.BillboardGui
local teams = game:GetService(“Teams”):GetChildren()game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local newovh = overhead:Clone()local nametag = newovh:WaitForChild('Name') local ranktag = newovh:WaitForChild('Rank') nametag.Text = player.Name ranktag.Text = player:GetRoleInGroup({groupid}) char.Humanoid.DisplayDistanceType = 'None' newovh.Parent = char:WaitForChild('HumanoidRootPart')
end)
end)