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

BillboardGui TextButton not clicking?

Asked by
tek_o 56
5 years ago

I have a Billboard Gui on a part, then a frame, and then a TextButton. Under the TextButton, I have this script:

script.Parent.MouseButton1Click:connect(function()
    print("Hello")
end)

It's not doing anything when I click it. Either it's not clickable or my script is wrong. Please help!

0
I may be wrong, but I think ROBLOX made these ROBLOX locked. Or it was the text boxes VeryDarkDev 47 — 5y
0
I struggled with this in the past. Make sure the billboardGui is parented to the playerGui and that the button.Active property is true. Griffi0n 315 — 5y
0
You're also using a deprecated code It's supposed to be :Connect not :connect mixgingengerina10 223 — 5y
0
@mix What is deprecated? tek_o 56 — 5y
0
the :connect change it to :Connect with a uppercase Sergiomontani10 236 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

This is because you didn’t parent the BillboardGui to the StarterGui. Parent it to that, then set the Adornee of the BillboardGui to the part.

Ad

Answer this question