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!
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.