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

Any help with a Datastorage that loads buildings/parts once a server starts?

Asked by 5 years ago

Been trying to figure out how to do this by reading the Wiki for hours upon hours, are there any areas you can help point me to? I'm trying to make buildings load that have been placed (crafted) by players and it to be saved globally on that game until it is demolished.

The Datastorage currently is laid out as such: Key (Player.UserId) and Value ( [Building Category, X,Y,Z] )

Was thinking of having it as GameId and a table but that would be really ugly in terms of scripting and not really possible unless there was a cap (AND THERE ISNT)

Perhaps serialising in a JSON format would be good but I'm unsure how I could execute that!

Thank you for helping!

0
This may not help, but here's the link to an old saving system I made way back for a game https://pastebin.com/srYphsC2 mybituploads 304 — 5y
0
Group it together when the player leaves the build menu or whatever with getchildren() and then just make a clone and parent it to replicated storage. Then do on player remove create a token/id with instance.new and that will be the place holder. Then you can do like if it equals this then, parent it to the workspace and the players cframe + vector3(offset); I would also keep a empty folder for it ClockWallie 28 — 5y

Answer this question