Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My script isn't working please help? [Answered]

Theres my script it will put a billboardGui above the characters head displaying their name but now it doesn't work It use to work until I had the problem to where the original characters name and health GUI would pop up but now with the OccludeAll it doesn't work the roblox default healthbar and names still appear but now the billboardGui doesn't..

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(c)
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)
char:WaitForChild'Humanoid'.NameOcclusion = "OccludeAll"
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)
end)

1 comment

0

Nvm I figured out the issue I found a script that does this but in the script the creator created a fake head and made the original head invisible to achieve what i'm trying to do...

1 answer

Simply putting an answer so it isn't marked un-answered when I lock it.

This discussion is preserved as it was. New answers, comments, and votes are closed.