Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Custom Name tag with custom rank tag?

Asked by
gorani -5
3 years ago

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

0
I don't know, you tell me LeedleLeeRocket 1257 — 3y
0
Do you want everyone to have a nametag with the player's rank showing or only players with a rank have the nametag? COOLGUY16T 37 — 3y
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 COOLGUY16T 37 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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! :)

Ad

Answer this question