Advertisement
lafur

Untitled

Oct 21st, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 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 = script
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement