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

Help with making a BillboardGui clickable please? [CLOSED]

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.

5 comments

0

if enabled is set to false it wont work lol

0

They are set to true.

0
  1. Typo on line 5: "Paremt" 2. The Image IDs dont need to be in parenthesis, 3. "Player" is never used.
0

I tried, It still doesn't work.

0

where's the BillboardGui?

2 answers

✓ Accepted answer

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.

2 comments

0

theres a imagebutton -_-

0

How do you even have 51 rep? Obviously there is an ImageButton. I even said there is.

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