Billboard Click not working - please help!

I have a textbutton in my Billboard GUI, and the code is as follows:

	for _, egg in pairs(eggs:GetChildren()) do
		local eggData = eggsData[egg.Name];
		local billboard = game.ReplicatedStorage["Egg Templates"]["Main Billboard"]:Clone();
		billboard.Frame.Frame["Hatch 1"].C.MouseButton1Click:Connect(function()
			Pet:FireServer(egg.Name);
		end)
     end

The remote doesn’t fire. The billboard gui is:
image

Put the billboard gui in StarterGui. “Main Billboard” has a property called “Adornee”. Set the adornee to the part you want it to be attached to and you should be good to go.

Billboard guis not in PlayerGui cannot be interacted with

2 Likes

If I remember correctly…
To interact with UI in workspace like SurfaceGui and BillBoardGui you need to keep them in PlayerGui (place them in StarterGui) and then set their Adornee property onto the object in order for the UI to appear.

1 Like

Oh, that makes alot more since. Can I clone it to the player gui instead so I can have it auto clone to every egg?

1 Like

Yeah. Just get the player from a remoteevent then change it from there.

1 Like

It worked, thank you so much! Hours trying to figure this out… lol

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