of     1   

Kipyko
#155875014Friday, February 13, 2015 5:02 PM GMT

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.
Kipyko
#155875494Friday, February 13, 2015 5:13 PM GMT

.
Kipyko
#155876027Friday, February 13, 2015 5:25 PM GMT

.
powerhotmail123
#155876729Friday, February 13, 2015 5:39 PM GMT

Put the SurfaceGui in ScreenGui, and set the adornee to the parts path. Such as: game.Workspace:WaitForChild("Part"). Then, you can use game.Players.LocalPlayer to get the player.
Kipyko
#155880743Friday, February 13, 2015 7:25 PM GMT

omg thank you so much took me an hour to figure out what to do when u told me but i figured it out THANK YOU SO MUCH :)

    of     1