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

When i try to click a text button in a billboard gui, it does nothing. ???

Asked by 6 years ago

I am trying to make a billboard gui with a text button, but I cant use the button for some reason. It does absolutely nothing when i try to use it. This is the button script:

function onClick()
    script.Parent.Parent.Parent.Parent:Destroy()
end

script.Parent.MouseButton1Click:connect(onClick)
0
I don't think you can click on a Billboard Gui... robloxianmirror 57 — 6y
0
yeah here is the thing... I have no idea what the parents lead to so I can't really help, have a great day, bye greatneil80 2647 — 6y
0
if i could put an image in this, then i would show you. but i cant. VeryWowMuchDoge 47 — 6y
0
Nvm i found the answer. (it was hard and complicated) I couldn't find anything on the internet, so i thought of putting it in starterGUI and making it appear when a player clicks an object and making the adornee that object. VeryWowMuchDoge 47 — 6y
0
im making this for a sandbox/tycoon game VeryWowMuchDoge 47 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

Try inserting a textButton into the gui, and then connect the onClick function to that.

0
that is exactly what i did. lol VeryWowMuchDoge 47 — 6y
Ad
Log in to vote
0
Answered by 4 years ago

The parent of the Billboard Gui needs to be the PlayerGui, so put the Billboard Gui into starterGui and Adornee it to the part.

0
Also, :connect has been deprecated, you need to use :Connect (with caps) LoveTheBears101 0 — 4y

Answer this question