Anyone else having this problem?

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.

4 Likes

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.

1 Like

Thanks for that. I wasn’t sure if it was something that I did or if something else was going on.

1 Like

That is the default display name of the players. I think they should be removed as I can never tell which player is which.

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.

Yeah, that’s display name. I think it should be removed. The actual name of the player instance is correct.

You can enable something in game settings to fix it, its name is API something I think

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

image

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.

The only place in game settings that I’m aware of is under security with “Enable Studio Access to API Services” and that is marked as true.

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.

Updated script

nvm you can’t change a players DisplayName

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.

The problem has been corrected. The last update of Roblox Studio did the trick.

1 Like