Recently, when I run my game using the local server, all the players have the name “unknown+DN.” It shows in Humanoid.DisplayName, when you type something in chat, and on the leaderboard. However, when the player joins the server, it shows Player1, Player2, etc… in the chat (I’m printing it via script when the player joins), in Players, and in Workspace.
I’ve gone through my code I don’t see anything. On a hunch, I opened an experience that does not use scripts and it’s showing the same thing there. So I’m wondering if Roblox did something on a recent update. If so, how can I fix it? This isn’t game breaking, but it’s annoying.
I have this problem too. When I start a local server for testing the players are also called unknown+DN for me. I guess thats a bug or error in Roblox Studio.
It’s not just the name display over the player’s head, it’s also on the leaderboard and when typing in chat, it shows the message originator as ‘unknown+DN’ as well.
As far as I know this is a roblox sided problem, and since its only in roblox studio you should be fine. I’m guessing its fine in game.
A small script if you really need it fixing
Doesn’t work, it seems to be a problem with the actual player
This seems to be because the players that are used in studio local servers don’t actually exist, as you see Player1 has a -1 UserId which is not possible. And since, doesn’t have a display name.
Correction: It’s player.Name. DisplayName, as I said, should be removed for the local server test in all cases. When developing BaseAdmin, it’s a real pain to find out which player is which.
I have changed the display name for an NPC. Maybe the restriction is in place if the character model is parented to an actual player instead of the workspace.
Actually, you can in Studio. I just tested it and the change displays fine. So that fixes the over head name display. Where is the chat system and the leaderboard getting the name from. If I know that, I can track it down and see where they made their mistake.
I don’t think it’s a problem with the client as I see this on the server as well.
This isn’t your code, it’s not a problem, it’s something roblox made on their end. To clarify, it’s not their name that is “unknown+DN” it is their display name, there is no point in worrying about this as it’s nothing wrong in your end and this won’t break anything.