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: Backing up maps

Previous Thread :: Next Thread 
badtigra is not online. badtigra
Joined: 10 Sep 2010
Total Posts: 1393
09 Nov 2016 02:02 PM
so, i'm making a mini build game and one of the issues currently is, saving the map. we're trying to find something that allows us to save the entire map, then next time we play we can load it again. something similar to pilgrim isles reborn save system, except it saves everyone's build. if you can link me a model or walk me through doing this, it'd be much appreciated!
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
09 Nov 2016 02:08 PM
Save Place API: http://wiki.roblox.com/index.php?title=Dynamic_place_creation_and_saving


Report Abuse
badtigra is not online. badtigra
Joined: 10 Sep 2010
Total Posts: 1393
11 Nov 2016 04:12 PM
thanks for this.
Report Abuse
badtigra is not online. badtigra
Joined: 10 Sep 2010
Total Posts: 1393
11 Nov 2016 04:38 PM
could anyone do a better job of explaining than this 'tutorial' does?
i basically just want know if it's possible to basically make it so that, say, after we play a game i can say /savegame 1
which will save the map to the roblox database, then next time we play, the map will be completely back to normal, but when you say /loadgame 1 it will load that save and load the map
and if i can, have restriction so only i could actually save, this way no one else could save over existing saves.

thanks
Report Abuse
badtigra is not online. badtigra
Joined: 10 Sep 2010
Total Posts: 1393
11 Nov 2016 05:05 PM
b
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
11 Nov 2016 05:08 PM
If it's something like sandbox, where it is relative to a certain part, (The base) then do something like:


local parts = {}
local pos = {}

local function check(x)
for i,v in pairs(x:GetChildren())do
if v:IsA'Part' then
table.insert(parts,v)
table.insert(pos,(theMap.CFrame-v.CFrame)) -- Might have to play with this
end
check(v)
end
end
check(theMap)

---for loading:

for i,v in pairs(parts) do
v.Parent = workspace -- or something
v.CFrame = theMap.CFrame+pos[i]
end
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