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

I need help with a script that won't work? [Unanswered]

Asked by
Prioxis 673 Moderation Voter
10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(c)
c:WaitForChild'Humanoid'.NameOcclusion = "OccludeAll"
end)

local plr = game.Players.LocalPlayer
repeat wait() until plr and plr.Character

local char = plr.Character
local head = char:WaitForChild("Head")
local sg = Instance.new("BillboardGui", char)
sg.StudsOffset = Vector3.new(0,1.5,0)
sg.Size = UDim2.new(1,0,1,0)
sg.Adornee = head

local txt = Instance.new("TextLabel", sg)
txt.BackgroundTransparency = 1
txt.TextColor = BrickColor.random()
txt.Font = "ArialBold"
txt.FontSize = "Size18"
txt.Text = plr.Name -- player name
txt.Size = UDim2.new(1,0,1,0)
char.Name = ""

Theres my script but the OccludeAll value isn't working I can still see their default roblox username and health bar instead of seeing nothing and when I went and just added in a model with a head and humanoid and did OccludeAll it still didn't work

1 answer

Log in to vote
0
Answered by
Tesouro 407 Moderation Voter
10 years ago

If you tested it in studio, it will obviously show.

0
I didn't test it in studio Prioxis 673 — 10y
0
well, no idea then. try asking it in roblox forums, they may solve it Tesouro 407 — 10y
Ad

Answer this question