|
| 17 Feb 2013 01:46 PM |
This may make me look a bit dumb here but I'm not quite sure how to go about accessing a number value that already exists using Data Persistance
Look at the example code below, admittedly from the wiki:
game.Players.PlayerRemoving:connect(function(player) if player.DataReady then player:SaveNumber("Number", 5) end end)
SaveNumber. How can I change that to
game.StarterGui.PlayerHealthValue.Value
Or better yet
How do I access a local value if I can't perform data persistance in a local script?
|
|
|
| Report Abuse |
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
|
| 17 Feb 2013 01:48 PM |
replace the 5 with
game.StarterGui.PlayerHealthValue.Value
|
|
|
| Report Abuse |
|