Advertisement
yamanohera155233

Untitled

Jun 24th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. writeconsole'creating map model...'
  2.  
  3. BackupMap = function()
  4. if game.ReplicatedFirst:findFirstChild("MapBackup") then
  5. game.ReplicatedFirst.MapBackupBig Grinestroy()
  6. end
  7. ddd = Instance.new("Model")
  8. ddd.Parent = game.ReplicatedFirst
  9. ddd.Name = "MapBackup"
  10.  
  11. for _,v in pairs(game.Workspace:GetChildren()) do
  12. if v.Archivable == true and not v:IsA("Terrain") and not game.Players:findFirstChild(v.Name) and game.ReplicatedFirst:findFirstChild("MapBackup") then
  13. v:Clone().Parent = game.ReplicatedFirst.MapBackup
  14. end
  15. end
  16. end
  17. BackupMap()
  18.  
  19. wait(1)
  20.  
  21. writeconsole'saving map model to saved doc...'
  22. SaveInstance(game.ReplicatedFirst.MapBackup, "copymap.rbxm")
  23. writeconsole("map saved as copymap.rbxm")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement