NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 04 Nov 2011 02:12 PM |
| How would I insert a int value into a play once they join the game. |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 04 Nov 2011 02:13 PM |
game.Players.PlayerAdded:connect(function(plyr) Instance.new("IntValue",plyr) end)
¤שׂøøŦ¤ The Rich Zombie ¤ |
|
|
| Report Abuse |
|
|
NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 04 Nov 2011 02:15 PM |
| Okay, thanks. How would I change the name on the IntValue, since I will be inserting many they all can't be called IntValue. I'd like it to be called points. |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 04 Nov 2011 02:16 PM |
game.Players.PlayerAdded:connect(function(plyr) points = Instance.new("IntValue",plyr) points.Name = "points" end)
¤שׂøøŦ¤ The Rich Zombie ¤ |
|
|
| Report Abuse |
|
|
NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 04 Nov 2011 02:19 PM |
Okay, now would this edit the value?
game.Players.people[1].points = points + 20
By the way, all active players are in a table called people. |
|
|
| Report Abuse |
|
|