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

I cannot get this overhead ranking to work, any ideas?

So I have an overhead ranking thing shown below, I cannot get it to work, any advice?

local billboardgui = game:GetService("ServerStorage"):waitforchild("BillboardGui")

game.Players.PlayerAdded:Connect(function(player)
 
player.CharacterAdded:Connect(function(character)
 
player.Character     
 if player.Name ==  "Djnikola789" then
       local clonedgui = billboardgui:Clone()
       clonedgui.TextLabel.Text = "Creator"
       clonedgui.TextLabel.TextColor3 = Color3.fromRGB(165,7,163)
       clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
          end
  
      end)
  
 
 end)

3 comments

0

put your code in between the two ~~~~~~ lines for it to be properly set

0

that confused me, what?

0

Look in the properties of billboardgui, there is one called adornee

2 answers

Syntax Errors on your code

Line 1 its supposed to be :WaitForChild with capitals

remove line 7 its useless

Next time you should open output window in studio to be able to see the errors that is happening and you can correct it accordingly

Try this.

local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")

game:GetService("Players").PlayerAdded:connect(function(player)
	game.Workspace.ChildAdded:connect(function(char)
		if char:FindFirstChild("Humanoid") then
			if player.Name == "Djnikola789" then
				local NewGui = billboardgui:Clone()
				NewGui.clonedgui.TextLabel.Text = "Creator"
     			NewGui.TextLabel.TextColor3 = Color3.fromRGB(165,7,163)
				NewGui.Parent = char:WaitForChild("Head")
			end
		end
	end)
end)

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