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

How to make a string represent an instance?

Asked by 8 years ago

Im making an mmorpg game and was wondering for datastore how would I make a string that would look for then represent an instance. So it is then able to be saved through data store

0
Use the name of the object, and save that? RubenKan 3615 — 8y
0
Just keep the instance in ServerStorage. Now you can save the name and find it with that. Perci1 4988 — 8y

1 answer

Log in to vote
0
Answered by
cabbler 1942 Moderation Voter
8 years ago

You simply have to save the instance properties. It could be done with json or string manipulation, but I prefer with tables. Here is model saving: https://www.roblox.com/library/633336146/Model-Save-Script . Obviously if you only want to save a single instance then it is simpler. Transform the userdata into strings/tables, then store it in a dictionary.

Ad

Answer this question