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

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

Asked by
Prioxis 673 Moderation Voter
10 years ago

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)
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... Prioxis 673 — 10y

Locked by AmericanStripes

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 10 years ago

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

Ad