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

Help with making a BillboardGui clickable please? [CLOSED]

Asked by 6 years ago
Edited 6 years ago

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.

0
if enabled is set to false it wont work lol PyccknnXakep 1225 — 6y
0
They are set to true. TinyScripter 70 — 6y
0
1. Typo on line 5: "Paremt" 2. The Image IDs dont need to be in parenthesis, 3. "Player" is never used. PyccknnXakep 1225 — 6y
0
I tried, It still doesn't work. TinyScripter 70 — 6y
0
where's the BillboardGui? LegitimatlyMe 519 — 6y

2 answers

Log in to vote
0
Answered by
Azarth 3141 Moderation Voter Community Moderator
6 years ago
Edited 6 years ago

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.

Ad
Log in to vote
-1
Answered by 6 years ago

ding ding ding, billboardgui isnt a button.

0
theres a imagebutton -_- hiimgoodpack 2009 — 6y
0
How do you even have 51 rep? Obviously there is an ImageButton. I even said there is. TinyScripter 70 — 6y

Answer this question