I was making a overhead gui problem

Hello i tried to make a overhead text Gui but didnt work heres what i get


and here is my script

script.parent = game.ServerScriptService

local BillboardGui = script.BillboardGui
local playerUsername = “timothyco1”
local textColor = 255
local Guitext = “Owner”
local cloneGui = BillboardGui:Clone()

if player.name == playerUsername then
cloneGui.Parent = Character.Head
cloneGui.TextLabel.TextColor3 = Color3.fromRGB(255, 239, 2)
cloneGui.TextLabel.Text = Guitext

1 Like

Does it show any errors? If not, I assume you might have to do something with the offset.

1 Like

hmm theres no error Not one from that script atleast

wait i got one on line 9 Workspace.owner gui:9: Expected ‘(’ when parsing function, got ‘)’

You should remove the ) on the function.


Simply store one inside the script and clone it over to the player’s head when they join. Store it in ServerScriptService, and make sure the offset is something like {0, 2.5, 0}.

local gui = script.BillboardGui
local players = game:GetService("Players")

	local ngui = gui:Clone()
	ngui.TextLabel.Text = plr.Name
	local head = workspace:WaitForChild(plr.Name).Head
	ngui.Parent = head

clone it over too the players head sorry you got me confused

What I meant by that is that when a player joins, it does the following:

  1. Clone the BillbroadGUI child.
  2. Get its TextField and set the text to the player’s name.
  3. Get a “Head” part in a model in the workspace named after the player, which is supposed to be the player’s character’s head.
  4. Set the clone’s parent to the head.

Here’s the script in action in the client and server sides.
image image

Please let me know if you need any more clarification.

1 Like