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

how to change player nametag?

Asked by
Annon28 23
6 years ago

so i make a brick that will change player nametag but for some reason it display me a error message "19:50:37.871 - Label edit failed : The current identity (0) cannot set a Character's name (requires 4)".

function aaa(part)
    local human  = part.Parent:FindFirstChild("Humanoid")
    if human then
        human.Parent.Name = "AAAa"
    end 
end
script.Parent.Touched:connect(aaa)

is something wrong?

1 answer

Log in to vote
0
Answered by 6 years ago

Sorry, that is not possible, you would have to create your own name tag in the form of a BillboardGui + TextLabel.

To hide the original nametag do the following

Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
Ad

Answer this question