generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Could someone make a quick example script?[DS]

Previous Thread :: Next Thread 
zub74 is not online. 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 is not online. zub74
Joined: 13 Sep 2008
Total Posts: 489
12 Jun 2014 07:01 PM
Bump
Report Abuse
zub74 is not online. 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 is not online. zub74
Joined: 13 Sep 2008
Total Posts: 489
12 Jun 2014 07:21 PM
Bumpity bump bumppp
Report Abuse
batistapowerbonbtla is not online. batistapowerbonbtla
Joined: 16 Dec 2011
Total Posts: 2203
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image