So, the script doesn't do the function nor does it clone the GUI into the player. Any help would be appreciated.
What it's meant to do -Clone a billboard GUI above the player's head. -Player's name here, random injury here.
local names = {
Common = {
"Chest Pain";
"Abdominal Pain";
"Broken Leg";
"Broken Arm";
"Headache";
};
eh = {
"Toothache";
};
Rare = {
"Foreign Object";
};
}
local common,eh,rare = .6,.9,1
game.Players.PlayerAdded:connect(function(plr)
plr.NameDisplayDistance = 0
plr.CharacterAdded:connect(function(chr)
local random = math.random()
local gui = script.BillboardGui:Clone()
if random >= 0 and random <= common then
gui.TextLabel.Text = names.Common[math.random(1,plr.name, #names.Common)]
elseif random >= common and random <= eh then
gui.TextLabel.Text = names.eh[math.random(1,plr.name, #names.eh)]
elseif random >= eh and random <= rare then
gui.TextLabel.Text = names.Rare[math.random(1,plr.name, #names.Rare)]
end
gui.Parent = chr
gui.Adornee = chr:WaitForChild("Head")
end)
end)

2 comments
Might help if you move the Adornee line and the gui.Parent line to where it clones.
@Thundermaker300 Now says "Label"