Testing Display Name Feature in Studio

What do I want to accomplish:
I wanted to test display names in Roblox Studio to get a better understanding. The script I wanted to do was to change my display name so I can see how it works.

My Issue:
I am getting an error saying I lack permission, Here is a screenshot
image

here is the code I was using

game.Players.PlayerAdded:Connect(function(plr)
	plr.DisplayName = "Testname"
	plr.CharacterAdded:Connect(function(avatar)
		avatar.Humanoid.DisplayName = "Testname"
	end)
end)

If I am unable to change the Display name with a script I am ok with that, I just want to know if I am doing something wrong if I am. Thank you in advance

1 Like

it is not finished yet, if you print your own display name it’ll print your nickname, when it releases you can test the thing that you’re trying to do

1 Like

I know this already has a solution, but I dont think you can set the DisplayNames with a script anyway.
(but it would be amazing if you could, roleplay name GUIs would be a lot cooler)

1 Like

Yes, and it could also make a script to prevent people from having the same name and it labels them as Joe1 and Joe2. I hope this becomes an available scripting option but if they are worried for security there could be limits as well.