Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
UPumpkin -34
6 years ago
Edited 6 years ago

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
0
The parent argument to Instance.new is deprecated User#19524 175 — 6y

1 answer

Log in to vote
0
Answered by
INOOBE_YT 387 Moderation Voter
6 years ago

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.

0
But I want the person to also be able to see other peopls names. UPumpkin -34 — 6y
0
Yea, you set it to "None" for only the client's own name tag. INOOBE_YT 387 — 6y
Ad

Answer this question