generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is this possible?

Previous Thread :: Next Thread 
WealthyDrakor is not online. WealthyDrakor
Joined: 15 Dec 2011
Total Posts: 654
19 Jun 2016 03:32 PM
I want to make a sandbox game, each player has their own designated plot where they can build stuff in.
Is it possible to DATASTORE the actual plot and the stuff inside is all parented to the plot. So when the player leaves, the stuff saves and when the player comes back, the stuff is exactly where it is.

Please provide roblox wiki pages if this is possible.
Report Abuse
TacticalKiller91 is not online. TacticalKiller91
Joined: 28 Jan 2014
Total Posts: 228
19 Jun 2016 03:34 PM
Well, I guess you could data save positions, rotations and any type of visual modification to the blocks. SO yes, I would say it is possible. You would need to load the bricks back in though.
Report Abuse
WealthyDrakor is not online. WealthyDrakor
Joined: 15 Dec 2011
Total Posts: 654
19 Jun 2016 03:38 PM
Yeah, that's very time consuming and I'm up for it but I was just curious if there was another way @TacticalKiller91
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
19 Jun 2016 03:39 PM
Serialize the Instances.
Report Abuse
WealthyDrakor is not online. WealthyDrakor
Joined: 15 Dec 2011
Total Posts: 654
19 Jun 2016 07:43 PM
what I don't want to use DataPersistence
Report Abuse
WealthyDrakor is not online. WealthyDrakor
Joined: 15 Dec 2011
Total Posts: 654
19 Jun 2016 07:49 PM
Okay, so I want to save models with Datastore btw
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
19 Jun 2016 07:50 PM
You need to save and interpret a string. Save all the variations between the user's part and a fresh instance thereof, then load it back up. It's actually easier to load than save because:

Setting a property is as simple as indexing a table

Property = "BrickColor"
Value = "Really red"
p = Instance.new("Part")
p[Property] = BrickColor.new(Value)

But getting it takes the whole API

Properties = {--[[ A dump of all the API's objects and their properties, methods, and functions ]]}
ComparePart = Instance.new("Part")
for prop in Properties do
if p[prop] ~= ComparePart[prop] then
--Save it
end

And then you have to pcall everything because it doesn't like when said properties don't exist.
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
19 Jun 2016 07:51 PM
^ You just save the properties.
Report Abuse
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
19 Jun 2016 07:51 PM
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=184750925
That's what I did for one of my games. It works.
Report Abuse
WealthyDrakor is not online. WealthyDrakor
Joined: 15 Dec 2011
Total Posts: 654
19 Jun 2016 07:52 PM
Thanks for the reply Phoenix! However I am trying to save multiple models within the plot. It is sort of like Miners Haven. I am not sure what you said would work with models.
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
19 Jun 2016 07:55 PM
Yeah it will as long as you record parents. Now that's actually kinda tricky. But the gist of it is that you need to start with parent "0", which we'll say is workspace. Then you can generate parts and put them in a table like this:

Loopback = {['0'] = game.Workspace}

And generated parts can be given their own parental code and put within the objects in the table during interpretation.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image