Does anybody know how to hide players names? Like when you look at them it appears over there head. Can you remove that,Please let me know.
How do you hide names?
5 answers
Try this:
Debounce = true Toggled = false Screen = script.Parent.Parent Char = Screen.Parent.Parent.Character function onButtonClicked() if (Debounce == true and Char:findFirstChild("FakeHat") ~= true) then if Toggled ~= true then select() Debounce = false Toggled = true Hat = Instance.new("Hat") Part = Instance.new("Part") Hat.Name = "FakeHat" Part.Name = "Handle" Part.formFactor = 0 Hat.AttachmentForward = Vector3.new(0,0,-1) Hat.AttachmentPos = Vector3.new(0,-.1,-.01) Hat.AttachmentRight = Vector3.new(1,0,0) Hat.AttachmentUp = Vector3.new(0,0,0) Part.Size = Vector3.new(2,1,1) Part.BottomSurface = 0 Part.TopSurface = 0 Part.CanCollide = false Part.Parent = Hat Part.Position = Char:findFirstChild("Head").Position Part.Locked = true Color = tostring(Char.Head.BrickColor) Part.BrickColor = BrickColor.new(Color) Char.Head.Transparency = 1 Char.Head.Mesh:clone().Parent = Part Hat.Parent = Char Weld = Instance.new("Weld") Weld.Parent = Part Weld.Part0 = Char.Head Weld.Part1 = Part Part.Name = "FakeHat" Part.Parent = Char Hat:remove() script.Parent.Text = "Show Name" wait(.65) Debounce = true unselect() else select() Debounce = false Char.FakeHat:remove() Char.Head.Transparency = 0 Toggled = false script.Parent.Text = "Hide Name" wait(.65) Debounce = true unselect() end end end script.Parent.MouseButton1Click:connect(onButtonClicked) -- Script by HatHelper
function select() script.Parent.BackgroundColor3 = Color3.new(128/255,128/255,128/255) script.Parent.BorderColor3 = Color3.new(50/255,50/255,50/255) script.Parent.TextColor3 = Color3.new(50/255,50/255,50/255) end function unselect() script.Parent.BackgroundColor3 = Color3.new(1,1,1) script.Parent.BorderColor3 = Color3.new(0,0,0) script.Parent.TextColor3 = Color3.new(0,0,0) end
Clone(head2) the head, Then You make the the head1 Transparency to 1 and make head2 the same position of where head1 is like Let's say you make a gui make sure that the order goes like this
ScreenGui
Frame
TextButton
player = script.Parent.Parent.Parent.Parent.Parent -- This script goes in the Textbutton
script.Parent.MouseButton1Click:connect(function()
z = player.Character.Head:Clone()
z.Name = "Head2"
z.Parent = player.Character
player.Character.Head.Transparency = 1
x = Instance.new("Weld")
x.Parent = player.Character.Head
x.Part0 = player.Character.Head
x.Part1 = z
end)
This a second way a that other player's can't see his name or not both ways work, you can choose which ever one suits your needs.
player = script.Parent.Parent.Parent.Parent.Parent -- This script goes in the Textbutton
script.Parent.MouseButton1Click:connect(function()
player.Character:WaitForChild("Humanoid").NameOcclusion = Enum.NameOcclusion.OccludeAll
end)
This should make sure that the players name is hidden, hopes this helps.
I just make the Head fully Transparent. :P
-- LocalScript --
wait(0)
repeat wait(0)until game:service("Players").LocalPlayer.Character
if game:service("Players").LocalPlayer.Character:FindFirstChild("Head")then
game:service("Players").LocalPlayer.Character.Head.Transparency=1
end
Sorry if this didn't help.
1 comment
Ok,I'll use this.Thanks.The morph I made needed the head to be transparent anyways.
One thing you can do is set both the NameDisplayDistance and HealthDisplayDistance to 0.
Like so:
--LOCAL SCRIPT IN STARTERPACK--
game.Players.LocalPlayer.NameDisplayDistance = 0
game.Players.LocalPlayer.HealthDisplayDistance = 0
If you want them to see the health bar still, just delete the line with HealthDisplayDistance
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
NameOcclusion is preferable..