Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

BillboardGui not detecting mouse button click?

Asked by 5 years ago
Edited 5 years ago
BillBoardGui.TextButton.MouseButton1Click:connect(function()
    print("Clicked")
end)

I have a TextButton under a BillboardGui and the BillboardGui is under PlayerGui, it's still not detecting click.

Any help?

0
Make the zindex higher than the Billboard GUI. retrobricks 162 — 5y
0
That will not actually do it, You're going to have to change the Adornee to the part within workspace IDKBlox 349 — 5y

2 answers

Log in to vote
0
Answered by
IDKBlox 349 Moderation Voter
5 years ago
Edited 5 years ago

what you want to do is put the BillboardGui within the StarterGui and set its Adornee to the part which you want the billboardGui to be used in. From there you can set it how you'd like :)

Have any questions? Feel free to ask :Example Explorer: https://gyazo.com/418a9d383b76838faf1fd7de328780c0 Script: https://gyazo.com/afb576681a9ff4798e1ed49fbff99960

Ad
Log in to vote
0
Answered by 5 years ago
local Gui = game.ScreenGui.BillBoardGui
Gui.TextButton.MouseButton1Click:connect(function()
       print("Clicked")
end)

I Hope it Worked.

Answer this question