|
| 20 Aug 2015 05:56 PM |
Ok, so there's only one question I have. When I got into the game this button doesn't work from Roblox itself. When I test it in solo mode in Roblox Studio, it works. The problem is here:
game.Players.Player.leaderstats.Cash.Value > 49 then game.Players.Player.leaderstats.Cash.Value =
What's the code that you use instead of "Player" if I want it to effect any name that presses the button? I thought instead of "Player" replace with "Username" but that's not a valid line of code. Can someone please help? Feel free to ask more questions. Thanks! |
|
|
| Report Abuse |
|
|
lsp425
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 603 |
|
|
| 20 Aug 2015 05:58 PM |
| LocalPlayer, but can only be used in a localscript. |
|
|
| Report Abuse |
|
|
Eauz
|
  |
| Joined: 23 Jul 2013 |
| Total Posts: 2942 |
|
|
| 20 Aug 2015 06:08 PM |
change to localscript and use the player variable like this
anyPlayer = game.Players.LocalPlayer
anyPlayer:WaitForChild("leaderstats"):WaitForChild("Cash").Value > 49 then anyPlayer:WaitForChild("leaderstats"):WaitForChild("Cash").Value =
|
|
|
| Report Abuse |
|
|
|
| 20 Aug 2015 10:15 PM |
| Thanks so much really appreciate it. |
|
|
| Report Abuse |
|
|