zub74
|
  |
| Joined: 13 Sep 2008 |
| Total Posts: 489 |
|
|
| 12 Jun 2014 06:56 PM |
| I tried the wiki and some free models, but I couldn't seem to find an example of assigning a string to a player when they join then storing/retrieving it when they leave/join. Can someone help me out? |
|
|
| Report Abuse |
|
|
zub74
|
  |
| Joined: 13 Sep 2008 |
| Total Posts: 489 |
|
| |
|
zub74
|
  |
| Joined: 13 Sep 2008 |
| Total Posts: 489 |
|
|
| 12 Jun 2014 07:09 PM |
| Could someone at least give me a link? |
|
|
| Report Abuse |
|
|
zub74
|
  |
| Joined: 13 Sep 2008 |
| Total Posts: 489 |
|
| |
|
|
| 12 Jun 2014 07:23 PM |
--PUT THE 2 LINES BELOW IN PLAYERJOINED DS = game:GetService("DataStoreService"):GetDataStore("URSTUFF") --this goes at the top local TheValue = Instance.new("StringValue", player) TheValue.Name = "VIRUS" TheValue.Value = DS:GetAsync(player.userId.."_DAVALUE") print(TheValue)
--PUT THE LINE BELOW IN PLAYERLEFT DS = game:GetService("DataStoreService"):GetDataStore("URSTUFF") --this goes at the top DS:SetAsync(player.userId.."_DAVALUE", player.VIRUS.Value) |
|
|
| Report Abuse |
|
|