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

How to set a click Listener on BillboardGui or descent?

I have a BillboardGui, and a ImageButton as a child of the BillboardGui, I set a click listener, but it doesn't work, this is an example of the click listener that I try to use:

billboard.ImgMaterials.MouseButton1Click:Connect(function() print("click") end)
billboard.ImgMaterials.MouseButton1Up:Connect(function() print("clickUp") end)
billboard.ImgMaterials.MouseButton1Down:Connect(function() print("clickDown") end)
billboard.ImgMaterials.MouseEnter:Connect(function() print("clickEnter") end)
billboard.ImgMaterials.MouseLeave:Connect(function() print("clickLeave") end)
billboard.ImgMaterials.MouseMoved:Connect(function()  print("clickMove") end)

Any help will be appreciated

2 comments

0

Look at the output.

0

there is no output D:

1 answer

✓ Accepted answer

In order to get clicking input, BillboardGuis have to be located in the PlayerGui and the events must run in a LocalScript.

Don't forget that by placing it inside the PlayerGui, you have to set the Adornee property and it will only be visible to that player.

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