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

How to hide own player name tag but other players still can see?

Asked by 8 years ago
01game.Players.ChildAdded:connect(function(player)
02    player.CharacterAdded:connect(function(char)
03        local plyrGui = Instance.new("BillboardGui")
04        plyrGui.Parent = char.Head
05        plyrGui.Adornee = char.Head
06        plyrGui.Size = UDim2.new (1,0,1,0,0,0)
07        plyrGui.StudsOffset = Vector3.new (0,2,0)
08 
09        game.Workspace:WaitForChild(player.Name):WaitForChild("Humanoid").DisplayDistanceType = "None"     
10 
11        local text = Instance.new("TextLabel")
12        text.Parent = plyrGui
13        text.Text = player.Name
14        if not text.TextFits then
15            text.TextScaled = true
View all 25 lines...

1 answer

Log in to vote
0
Answered by 8 years ago

There is a property in the billboard gui called "PlayerToHideFrom". It is an object value. You set this value to the player and the player will notsee their own name tag while other people do.

1plyrGui.PlayerToHideFrom = player

If this answered your question be sure to confirm it.

0
yea that's the bestest Rawblocky 217 — 8y
0
Thank you it works :) . I didn't realize that properties. Thanks again! xiFrosty 13 — 8y
0
No problem! QuantumToast 261 — 8y
Ad

Answer this question