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

How do you hide names?

Asked by 10 years ago

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.

5 answers

Log in to vote
0
Answered by 10 years ago

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.

0
Ok,I'll use this.Thanks.The morph I made needed the head to be transparent anyways. DerpTrollark 20 — 10y
Ad
Log in to vote
0
Answered by
mhd100 5
10 years ago

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

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
10 years ago

Either use NameOcclusion or try Putting A Fake Head.

Hope I Helped

+1

0
NameOcclusion is preferable.. Goulstem 8144 — 10y
Log in to vote
0
Answered by
HexC3D 830 Moderation Voter
10 years ago

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.

Log in to vote
0
Answered by 10 years ago

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

Answer this question