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 » Scripters
Home Search
 

Simple DS questions I never found out

Previous Thread :: Next Thread 
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
28 Jan 2016 01:16 PM
Can you use either Get or Set async in either a LocalScript or ServerScript that's in the client? (I think LocalScripts wouldn't work, from what I heard.)
Report Abuse
128Gigabytes is online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
28 Jan 2016 01:18 PM
wiki.roblox.com/index.php?title=Data_store
Note: Data stores can only be accessed from server scripts.
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
28 Jan 2016 01:21 PM
Can you still use it in the client?


Regular script


local ds = game:GetService("DataStoreService"):GetDataStore("meh")

ds:SetAsync(p.userId,1)
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
28 Jan 2016 01:22 PM
server scripts are never "in the client", it could be stored inside the player object however it will always run server side

if they were possible to access through localscripts it would be the same as being able to change your cash client side
Report Abuse
128Gigabytes is online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
28 Jan 2016 01:23 PM
'Can you still use it in the client?'

Note: Data stores can only be accessed from server scripts.
Data stores can only be accessed from server scripts.
Data stores can only be accessed from server
Data stores only accessed from server
Data only from server
only from server
only server
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
28 Jan 2016 01:23 PM
Okay that makes sense :P

Thanks.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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