|
| 23 Sep 2014 03:06 PM |
game.Players:FindFirstChild("Player") if Player ~= nil then Player.Value = 1 end
I have a value located in all the players, and when they buy something I want the value to go up. How do I do this? I gave you an example up there of how I did it. |
|
|
| Report Abuse |
|
|
| 23 Sep 2014 03:10 PM |
Player.Value.Value = 1 <-- Would set it. So... Let's call the value Points. And let's assume they just purchased whatever the item was.
player = game.Players:FindFirstChild("Player") if player then player.Points.Value = player.Points.Value + 1 end |
|
|
| Report Abuse |
|