Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Custom Name tag with custom rank tag?

How do I make a certain rank gets a custom rank tag and custom name tag

3 comments

0

I don't know, you tell me

0

Do you want everyone to have a nametag with the player's rank showing or only players with a rank have the nametag?

0

Please dont come to this site asking for scripts. I wrongly gave you the script. Please attempt to do this yourself and if it errors and you dont know how to fix it then come here and ask for HELP, not for a script

1 answer

Here is the link to the nametag model https://web.roblox.com/library/6355944232/NametagScript

Here is the script inside it! I highly recommend reading it so you can make your own in the future!

game.Players.PlayerAdded:Connect(function(player)	--Gets the player when a player joins
	player.CharacterAdded:Connect(function(character)--Gets the player's character
		local tag = script.Nametag:Clone()--Clones the nametag inside  the script
		local rank = player:GetRoleInGroup(7216661)--Group Id (Change it to your group)
		tag.Frame.UserName.Text = player.Name--Changes the username text to the player's name
		tag.Frame.Rank.Text =rank--changes the rank text to be the rank in the group
		tag.Frame.Rank.TextColor3 =Color3.fromRGB(255,255,255) --Colour of rank text
		tag.Frame.UserName.TextColor3 = Color3.fromRGB(0,0,0)--Colour  of username text
		tag.Parent =character.Head--Puts the nametag into the player's head
	end)
end)

Enjoy! :)

This discussion is preserved as it was. New answers, comments, and votes are closed.