CryniteEpic

Back up Map (Roblox

Dec 30th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. gui1=Instance.new("ScreenGui")
  2. gui1.Parent=game.CoreGui
  3. gui1.Name = "backup"
  4. text1=Instance.new("Frame")
  5. text1.BackgroundTransparency=1
  6. text1.Size=UDim2.new(0,300,0,100)
  7. text1.Position=UDim2.new(0,0,0,650)
  8. text1.Parent=gui1
  9. text2=Instance.new("TextButton")
  10. text2.Size=UDim2.new(0,150,0,50)
  11. text2.Position=UDim2.new(0,0,0,0)
  12. text2.Text="backup"
  13. text2.BackgroundColor3=Color3.new(0,0,0)
  14. text2.BackgroundTransparency=0.3
  15. text2.BorderColor3=Color3.new(255,0,0)
  16. text2.TextColor3=Color3.new(255,0,0)
  17. text2.Parent=text1
  18. text2.MouseButton1Down:connect(function()
  19. local model = Instance.new("Model")
  20. model.Parent = game.Lighting
  21. model.Name = "BackUpMap"
  22. local players = game.Workspace:GetChildren()
  23. for _, v in pairs(players) do
  24. if v.ClassName == "Terrain" then
  25. print("Terrain skipped")
  26. elseif wait() then
  27. v.Archivable = true
  28. v:Clone().Parent = game.Lighting.BackUpMap
  29. end
  30. end
  31. end)
  32. text3=Instance.new("TextButton")
  33. text3.Size=UDim2.new(0,150,0,50)
  34. text3.Position=UDim2.new(0,151,0,0)
  35. text3.Text="restore"
  36. text3.BackgroundColor3=Color3.new(0,0,0)
  37. text3.BackgroundTransparency=0.3
  38. text3.BorderColor3=Color3.new(255,0,0)
  39. text3.TextColor3=Color3.new(255,0,0)
  40. text3.Parent=text1
  41. text3.MouseButton1Down:connect(function()
  42. local restoremap = game.Lighting.BackUpMap
  43. restoremap.Archivable = true
  44. restoremap:Clone().Parent = game.Workspace
  45. end)
Add Comment
Please, Sign In to add comment