OK first things first I'm not asking someone to make me a script, I'm simply asking on how you would use a surface gui TextButton script to define the player who is clicking the button.
example say on the button like pay 3 turkeys for 1 golden egg (Just an example)
3 Turkeys intvalue inside ur leaderstats then on exchange u get 1 golden egg intvalue.
just specifically asking on how you would access the player.
I know that when u have a screen gui its a simple
script.parent.(how many parents you would need to get to your player)
but knowing that it is a surface gui in workspace I think that wouldn't work
I'm new to the surfacegui stuff and I can't find a single thing on this in the roblox wiki.
Please Help. |