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

How do I enable Adornee?

Asked by 9 years ago

So what I'm trying to do is make a script where you click on an image button that is on a part (The ImageButton is inside the SurfaceGui, and the SurfaceGui is inside the part), and when it's clicked, it kills you. A lot of people are saying to enable the "adornee", but I don't know how, I check the wiki, and it doesn't help me.

Please help... Thank you!

0
You want to parent the Surface Gui inside StarterGui, and in a LocalScript preferably change the SurfaceGui's Adornee property through that LocalScript to game.Workspace.SpecifiedBrick clearly changing SpecifiedBrick to the brick you want the GUI to appear on. M39a9am3R 3210 — 9y

1 answer

Log in to vote
0
Answered by
yoshi8080 445 Moderation Voter
9 years ago

I'm not sure if this works but

script.Parent.Adornee = game.Workspace["name of part here"] -- location of part
wait()
script:destroy()

SurfaceGui Placed in and the script in the surfacegui, not in any frame.

Ad

Answer this question