lrisDev
(lrisDev)
September 25, 2021, 3:13pm
#1
Alright, been googling some ways to fix this issue.
here is the code I have
game:GetService("Players").PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Wait();
Player.CharacterAdded:Connect(function(Character)
Character:WaitForChild("Humanoid", math.huge).DisplayName = Character.Name;
end)
Player.DisplayName = Player.Name;
end)
But it appears they’ve changed permissions and now you’re unable to set the DisplayName property
It doesn’t say in the documentation that its a protected permission?
https://developer.roblox.com/en-us/api-reference/property/Player/DisplayName
You can not change the DisplayName iteslf, as it is protected as mentioned, though, you can disable the visiblity of the DisplayName through:
Games > StarterPlayer > NameDisplayDistance > 0
IAmPinleon
(Pinleon)
September 25, 2021, 3:18pm
#3
Well when the player joins you are waiting for the character before doing the .CharacterAdded:Connect() thing so it won’t update
You should remove Player.CharacterAdded:Wait();
so that it will change the humanoid DisplayName the first time.
lrisDev
(lrisDev)
September 25, 2021, 3:18pm
#4
That isn’t the issue here, the humanoid changing works fine
IAmPinleon
(Pinleon)
September 25, 2021, 3:19pm
#5
Oh alright then, I’m not sure if there can be any fix to this because you can’t change their DisplayName.
lrisDev
(lrisDev)
September 25, 2021, 3:19pm
#6
They should fix their documentation!