of     1   

dansk
#139826842Thursday, July 10, 2014 2:04 AM GMT

Hey guys I've been recently looking into surface guis but I dont know much about them. So I want to make a surface gui with a button on a brick that tests for if you are a certain user or not. If you are the certain user, then it will do something. Anyone have any suggestions? My main problem here is I dont know how to get the player that clicked the button on a surface gui since I cant use local scripts and I dont know what event to use when getting the player.
DataStore
#139827306Thursday, July 10, 2014 2:09 AM GMT

If the SurfaceGui is a descendant of Workspace there is no way to retrieve the player who clicked the SurfaceGui. If you wish to find out who did, you will have to give each player their own copy of it.
dansk
#139852232Thursday, July 10, 2014 6:44 AM GMT

How do you give someone a surface gui and still make it appear on a brick?
DataStore
#139866649Thursday, July 10, 2014 12:15 PM GMT

You'd set the 'Adornee' property, of the SurfaceGui, using a script within it (which you could combine with the script used for the buttons).
dansk
#139876748Thursday, July 10, 2014 3:24 PM GMT

Oh ok thanks. One last question though: whats an adornee and what does adorn mean?
DataStore
#139886691Thursday, July 10, 2014 5:17 PM GMT

Basically it's whatever the object, in this instance a SurfaceGui, will stick to.

    of     1