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

How do I enable Adornee?

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!

1 comment

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.

1 answer

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.

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