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

Automatic Name Hiding Script [closed]

Asked by
Corogl 0
10 years ago

This question already has an answer here:

Automatic Name Hiding Script

Me and my good friend are having trouble finding & creating a script that does exactly what the title says; hides the names of every player in the game without having to click any GUI. We figure it's possible, but whenever we test them many times it works only for me (creator of the place) but once I die the script becomes invalid.

Does anyone happen to know of a working script that does exactly what we need? If required I can give you what we have for you to work off of.

The following script, as provided by TechTeam911, does not work:

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local hc = character:WaitForChild("Head"):Clone()
hc.Name = "FakeHead"
hc.Parent = character
local w = Instance.new("Weld")
w.Part0 = character.Head
w.Part1 = hc
w.Parent = character.Head
character.Head.Transparency = 1
end)
end)

I, the owner/creator of the place, and usually the first to join, am NOT able to see someone's name, but they can see mine. This script works in the sense that after one of us has died, I am still unable to see names, and I do not have a broken head, but others can still see my name.

Thanks in advance,

0
You don't need to list your "qualifications" or who you are working with, and you should just post the code here. No need for pastebin. Say the issue, post the code, be done. TheLuaWeaver 301 — 10y
0
Do not repost your questions. This will get your account suspended. User#11893 186 — 10y

Marked as Duplicate by evaera

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago
Game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        wait()
        local head = character.Head
        local headClone = head:Clone()
        headClone.Parent = Workspace
        head.Transparency = 1
        headClone:ClearAllChildren()
        head.Mesh.Parent = headClone
        head.face.Parent = headClone
        headClone.CFrame = head.CFrame
        headClone.Name = "False Head"
        headClone.Parent = character

        local weld = Instance.new("ManualWeld")
        weld.Part0 = head
        weld.Part1 = headClone
        weld.C0 = CFrame.new()
        weld.C1 = headClone.CFrame:inverse() * head.CFrame
        weld.Parent = head
        weld.Name = "fakeHeadWeld"
    end)
end)

That should work for ya. :>

Ad