Hi, I am trying to disable it so your name above your head doesn’t show your display name and it just shows your regular name. How do I do this?
3 Likes
Set the humanoid display name value to the PLayer name value.
3 Likes
Here’s the code you could do for it:
local humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
humanoid.DisplayName = game.Players.LocalPlayer.Name
2 Likes
welp,
it must be a server script doenst it
otherwise it’ll happen just for the client
game.Players.PlayerAdded:Connect(function(player)
repeat wait() until player.Character and player.Character.Humanoid
player.Character.Humanoid.DisplayName = player.Name
end)
1 Like
Do I make this a Local Script, and where do I place it?
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.DisplayName = Player.Name
end)
end)
This would go into ServerScriptStorage in a ServerScript.
2 Likes
This didn’t work for me, but this did:
game:GetService("Players").PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local Humanoid = character:WaitForChild("Humanoid")
Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
end)
end)
1 Like