Hello Developers, I am trying to make a script that disables display names, here is the script I have so far, it doesnt work, and I am not sure why.
local plr = game:GetService("Players").LocalPlayer
local Player = game.Players.LocalPlayer
plr.PlayerAdded:Connect(function()
Player.DisplayName = Player.Name
end)
Edit: Out put is saying that "Player Added is not a vaild member of PLayer “Players.Bear23913”
When a Humanoid named StarterHumanoid is parented to StarterPlayer, … [t]he engine will only override the DisplayName property of the Humanoid with the DisplayName property of the player if the StarterHumanoid ’s DisplayName property is an empty string.