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
|
  |
| 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
|
  |
| Joined: 10 Sep 2010 |
| Total Posts: 1393 |
|
| |
|
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
|
  |
| Joined: 10 Sep 2010 |
| Total Posts: 1393 |
|
| |
|
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 |
|
|