|
Because not being able to is stupid
WolfgangVonPrinz for President! |
|
|
Do you mean like:
http://wiki.roblox.com/index.php?title=Data_persistence
If so, you could create your own skeleton persistence based on this very easily but obviously, the call would not be similiar. You could possibly actually create a modulescript for all your persistence which checks the current mode of the game (i.e. is in studio, etc.)
Example, and untested and written in the forum textbox (so ignore errors) would be like:
local p = {}
function PersistPlayerValue(player, valueName, value)
local didDatastore = false
if player.DataReady then
// actual persistence stuff here
didDatastore = true
end
if(p[player] == nil) then
p[player] = {}
end
p[player][valueName] = value
return didDatastore
end
Which would store data locally if datastore exists and if it did not, so you could probably use the local version of data online anyway because it should be the most up to date. |
|
WoolHatJoin Date: 2013-05-19 Post Count: 1873 |
If I recall correctly, I've had data persistence work in test mode. Just had to enable the API |
|
|
data stores > data persistence.
mate, you can see the dev console when you are in a server to see all the code being ran.
use print statements to see the results. |
|
|
I mean Data Stores.
Also, no I want to see lots of folders inside the player and check the value of what they hold
WolfgangVonPrinz for President! |
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
You can use datastores from in studio after you enable the studio API thing from the game settings.
You can use the IsStudio method of RunService to check if it is in studio and change the behavior, like using a different datastore so it doesn't affect the real game datastore.
http://wiki.roblox.com/index.php?title=API:Class/RunService/IsStudio
|
|
WoolHatJoin Date: 2013-05-19 Post Count: 1873 |
^
Yeah, that's what I was trying to say. I also always get the names of datastore and datapersistence mixed up |
|