How do I make a certain rank gets a custom rank tag and custom name tag
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! :)