of     1   

Immooretal
#169852294Monday, August 03, 2015 10:45 PM GMT

So I'm trying to make it so when someone clicks a gui button, they'll be given a gun, but I can't seem to access the player who clicked the button? I have it inside a localscript, inside a textbutton, inside a frame, inside the screen gui. I am using player = game.Players.LocalPlayer but it says it "returns a value"?
Immooretal
#169865189Tuesday, August 04, 2015 1:00 AM GMT

bump
HamilcarMago
#169865253Tuesday, August 04, 2015 1:01 AM GMT

You need to use a local script.
FuriaI
#169871225Tuesday, August 04, 2015 2:00 AM GMT

it would be: if game.StarterGui.whateverthenameis:connect() game.Players.LocalPlayer.name while true do game.Players.player.name = print(plyr"") end end maybe
GimmeWaffleBruh
#169871535Tuesday, August 04, 2015 2:03 AM GMT

you can try doing it in local lua but its up to u it might fix ur problem
TheBenSquare
#169874249Tuesday, August 04, 2015 2:28 AM GMT

As far as I know, there's no function for GUI's thar returns the player. The only method of finding the player would be using a local script and the player would be game.Players.LocalPlayer.

    of     1