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

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

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)

5 comments

0

I don't think you can click on a Billboard Gui...

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

0

if i could put an image in this, then i would show you. but i cant.

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.

0

im making this for a sandbox/tycoon game

2 answers

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

1 comment

0

that is exactly what i did. lol

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

1 comment

0

Also, :connect has been deprecated, you need to use :Connect (with caps)

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