'Lacking Permission 4'

Hello developers when I try change the characters name, I get this error, I have tried changing the players display name however that doesnt want to come up above the player, if anyone could help, that’d be great!

player.Character.Name = Player.Name.." || Economy"

I get this error;

The current identity (2) cannot set a Character’s name (lacking permission 4)

I guess that is because you won’t be able to identify the character and get player from character with game:GetService(“Players”):GetPlayerFromCharacter(char)

You can use Player:SetAttribute(“nametwo”,“yournamehere”) and then get with Player:GetAttribute(“nametwo”)

You can’t to change it. ;-;
You can change Humanoid Display name

Also if the name of character doesn’t appear try to change it’s DisplayType

The issue is that when I change the display name, it doesn’t appear, it just stays at the character’s current name, and not the rest.

Change the DisplayName property inside of the Humanoid of the character instead of through the player.

player.Character:WaitForChild("Humanoid").DisplayName = Player.Name.." || Economy"

Still get the exact same result, it just displays the players name and not the additional

" || Economy"

Are you doing this from a LocalScript or a ServerScript? Changing the display name on client doesn’t work. You have to do it from a ServerScript

Ah I should’ve thought that i should be doing it from a server script, ill try that now!

1 Like

Thank you very much this worked!