Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make a player not see his fake name?

I have a script that changes the players name. How would I make it so the player can't see his own name.

	local v = player


	local char = v.Character
	local mod = Instance.new("Model", char)
	mod.Name = player.name
	local cl = char.Head:Clone()
	cl.Parent = mod

	local hum = Instance.new("Humanoid", mod)
	hum.Name = "NameTag"
	hum.MaxHealth = 0
	hum.Health = 0

	local weld = Instance.new("Weld", cl) weld.Part0 = cl weld.Part1 = char.Head
	char.Head.Transparency = 1

1 comment

0

The parent argument to Instance.new is deprecated

1 answer

To make it so that the player does not see their own name tag, you will have to use a local script on the client. Since the script is on the client, you can do anything and the rest of the server will not see it. In this case, you are using a Humanoid to set the name tag. There is a property of the Humanoid called DisplayDistanceType, if you set this to "None", the character will not see it. If you set this property to "None" on the client, everyone will see it except for the character.

2 comments

0

But I want the person to also be able to see other peopls names.

0

Yea, you set it to "None" for only the client's own name tag.

This discussion is preserved as it was. New answers, comments, and votes are closed.