Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- writeconsole'creating map model...'
- BackupMap = function()
- if game.ReplicatedFirst:findFirstChild("MapBackup") then
- game.ReplicatedFirst.MapBackupBig Grinestroy()
- end
- ddd = Instance.new("Model")
- ddd.Parent = game.ReplicatedFirst
- ddd.Name = "MapBackup"
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v.Archivable == true and not v:IsA("Terrain") and not game.Players:findFirstChild(v.Name) and game.ReplicatedFirst:findFirstChild("MapBackup") then
- v:Clone().Parent = game.ReplicatedFirst.MapBackup
- end
- end
- end
- BackupMap()
- wait(1)
- writeconsole'saving map model to saved doc...'
- SaveInstance(game.ReplicatedFirst.MapBackup, "copymap.rbxm")
- writeconsole("map saved as copymap.rbxm")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement