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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 28 Jan 2016 01:23 PM |
Okay that makes sense :P
Thanks. |
|
|
| Report Abuse |
|
|