Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

DataStore and Universe?

Asked by 8 years ago

Alright, with all the smart Roblox LUA Coders reading this, please try to keep this simple for me, for I am a new comer to coding and only know some (BUT I AM NOT DUMB! lol). I am currently working on a Game where I want to transfer data from 1 place to another. Kinda like Pokemon Brick Bronze. You have a Pikachu and when you go to the Trade Resort, you still have the Pikachu.

The Game I am working on is called Sky Jumper, which can be found here: http://www.roblox.com/games/96707818/Sky-Jumper

I am going to create a Lobby that will have 5 Teleportation Pads, 1 for each level. 1) Grasslands, 2) Clouds, 3) Asteroids, 4) Planets, 5) idk yet. In each game you can attempt to see how high you can jump and there will be a "Leader board" that will record you highest score for that place. If the highest score is passed BY YOU, it will be recorded and stay there again until passed once again.

=EXAMPLE= Say you left the "Grasslands" level and wanted to play the "Clouds" level by teleporting back (On a Pad which I will provide). After you're done with Clouds you decide you want to play Grasslands again. I want to be able to go back to Grasslands and see my High-score (on the leader board) still there after I left the first time.

Question: How do I go back to "Grasslands" and seeing my high-score still there without it deleting from leaving. If I'm correct, this will consist of DataStoring?

0
Yes, saving and loading stats for a universe does require DataStores, you can view the whole tutorial I wrote about it at this answer. https://scriptinghelpers.org/questions/27426/how-to-use-datastores#30949 M39a9am3R 3210 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

Its pretty simple. If the games are universed together the datastores stay the same. So I can access the same data from different servers.

Ad
Log in to vote
0
Answered by 8 years ago

Basically, use a regular DataStore script (wiki can be found here) http://wiki.roblox.com/index.php?title=Data_store and then just make a secondary datastore script in the second game / universe ( just make load if you dont want to allow players to save ) and the data will be transferred over through games :)

Answer this question