Hello, everyone! I need help with making a BillboardGui clickable, but I am rather unfamiliar with using BillboardGui. Basically, what this script is supposed to do is when somebody clicks, it changes the image, wait 0.01 of a second and switches the image to normal, and disappears, however, when I click it, it does nothing. Here is my script ( LocalScript in ImageButton inside of a BillboardGui):
script.Parent.MouseButton1Down:Connect(function(Player) --Never fires. This is where I need help with BillboardGui script.Parent.Image = "rbxassetid://995987092" wait(0.01) script.Parent.Image = "rbxassetid://995986660" script.Parent.Visible = false end)
The BillboardGui's Booleans Active and Enabled are set to true.
Billboard/SurfaceGui inputs objects don't work unless they're in your PlayerGui. Drop the BillBoardGui in StarterGui and Adornee it to the brick in your LocalScript. Also, make sure the BillboardGui property "Active" is set to true.
ding ding ding, billboardgui isnt a button.