BillboardGUI not showing

Hi,
I’m trying to do the following:
When a user clicks on another a “billboard menu” will appear on that clicked user. The billboard is clickable, if the user clicks on another thing the billboard disappears…

I have a billboard menu template in ReplicatedStorage which is a Billboard and a button.

When the users clicks on the user the billboard clones on StarterGUI and links the adornee to the head of the clicked user… however is not seen on the screen.

Here’s my code:

mouse.Button1Down:Connect(function()
	local model = mouse.Target:FindFirstAncestorOfClass('Model')

	if model  then
		local clickedPlayer = game.Players:GetPlayerFromCharacter(model)

		if clickedPlayer then
			print(clickedPlayer)   -- this is done!
			clonarTest(clickedPlayer)
		end

	end

end)

local function clonarTest(player)
	-- Obtén el Folder en ServerStorage que contiene el Frame
	local folderGUI = game.ReplicatedStorage:WaitForChild("GUI")

	-- Obtén el objeto Frame de ServerStorage
	local billboard = folderGUI:WaitForChild("Test")
	local player_head = player.Character:WaitForChild("Head")

	-- Clona el objeto Frame
	local clonedBillboard = billboard:Clone()

	-- Coloca el clonado en el StarterGUI
	clonedBillboard.Parent = game:GetService("StarterGui")

	clonedBillboard.Adornee = player_head
end

any idea of what is happening?

Thanks!!!

You’re putting the “clonedBillboard” inside of StarterGui. Keep in mind that you want the billboardGUI to show up on top of the Player’s head (and billboardGuis only show when they’re a child or descendant of workspace).

Instead, you should parent clonedBillboard to the Player’s head.

Also, if you’re ever putting a textlabel (etc), keep in mind that after a Player is loaded in; anything you put in StarterGui will not show up on their screen and you have to put it in their PlayerGui for it to show up on their screen.

Hope this helps you :slight_smile:

Hi,
thanks! Modifying those lines :

	-- Coloca el clonado en el StarterGUI
	clonedBillboard.Parent = player_head --game:GetService("StarterGui")

	clonedBillboard.Adornee = player_head

the billboard does show up, however is not clickable …

The billboard consist on a textbutton and that textbutton has a script… but seems taht I cannot click on it…

Could you provide me with some pictures? That would be really helpful.

Here is a simple project that reproduces the problem…
Billboard appears when clicking another user but the button on the billboard is not clicable…

How to solve?

Thanks!!

Billboard_Not_Clicable.rbxl (48.4 KB)

set the adornee to the character head and put the billboard gui in the player gui

Since local scripts in non PlayerGui cannot be executed.

clonedBillboard.Parent = game.Players.LocalPlayer.PlayerGui
2 Likes

That worked! Thanks for your help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.