Custom name tag for specific players

I’m trying to write something where I can give specific players a custom name in game.
I don’t want it with any custom fonts or color, just the way roblox normally has it. Can someone help with this?

3 Likes

Try this:

2 Likes

You want a tag to be appeared above player’s head or in the chat ?

2 Likes

If you want to change the character’s name, just change the DisplayName of the player’s character humanoid. Or to make a custom tag, use BillboardGUI

2 Likes

I think it’s too complicated and not a very ideal and suitable method.

1 Like

You should also use TextService:FilterStringAsync in that case because it would be shown to every player (assuming you going to show it to only the client. I’m not sure why you would do that for something like that, though)

Not only the client, but everyone.

Exactly.

I worded it a bit poorly. I meant if you’re only displaying it to the client then it isn’t necessary to. But if you show it to everyone, it is required to filter it.

Yes, otherwise Roblox may take action.

Yep. And that sucks

Character limit

game.Players.PlayerAdded:Connect(function(player) if player.UserId == 1 then -- User ID of specific player you wish to give the nametag to player.Character:FindFirstChildOfClass("Humanoid").DisplayName = "" --Custom nametag end end)

Final code -

game.Players.PlayerAdded:Connect(function(player)
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
humanoid.DisplayName = "Anything"
end)

Don’t forget to filter your text in order to be safe from Roblox’s action.

just to be above someones head

For this, where would I put the ID or name of the player I want to give the display name to?

local list ={} --Add the UserId of the player you want to give.

game.Players.PlayerAdded:Connect(function(player)
if table.find(list, player.UserId) then
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
humanoid.DisplayName = "Anything"
end
end)
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.