Advertisement
lafur

Untitled

Mar 22nd, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. --Created by PenguinAnonymous (ttyyuu12345) Editied by Dittoide
  2. --What's Added To M2S with Dittoide's Edit?
  3. --/ Better dummy script function to improve compatibility (makes it like you are running the code inside the script.)
  4. --/ Removed Gui In Bottom-Left for when you are making guis.
  5. --/ Removed "Inserting Map Please Wait" gui when selected Workspace as Place to export.
  6. --Credit: PenguinAnonymous for making original script, i just wanted to iron it out to my liking.
  7. --Errors: Camera,Terrain
  8. local runDummyScript = function(f,scri)
  9. if (not scri:IsA('Script')) or (not scri:IsA('LocalScript')) then return false; end;
  10. local Dummy_CoRoutine = coroutine.create(function()
  11. getfenv().script = scri
  12. ypcall(function() f() end)
  13. end)
  14. table.insert(cors,Dummy_CoRoutine);
  15. coroutine.resume(Dummy_CoRoutine);
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. mas.Name = "M2S_Model"
  20. mas.Parent = workspace
  21. mas:MakeJoints()
  22. local mas1 = mas:GetChildren()
  23. for i=1,#mas1 do
  24. mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  25. ypcall(function() mas1[i]:MakeJoints() end)
  26. end
  27. mas:Destroy()
  28. for i=1,#cors do
  29. coroutine.resume(cors[i])
  30. end
  31. mess_handle.Text = "Resetting"
  32. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  33. v:LoadCharacter()
  34. end
  35. wait(1)
  36. mess_handle:Remove()
  37.  
  38. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  39. game:GetService("Lighting").Brightness = 2
  40. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  41. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  42. game:GetService("Lighting").GlobalShadows = true
  43. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
  44. game:GetService("Lighting").Outlines = false
  45. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  46. game:GetService("Lighting").TimeOfDay = "14:00:00"
  47. game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  48. game:GetService("Lighting").FogEnd = 100000
  49. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement