Advertisement
End_Wolf

Untitled

Sep 1st, 2018
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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: UnionOperation,TouchTransmitter,Camera
  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. o1 = Instance.new("Tool")
  21. o2 = Instance.new("NumberValue")
  22. o5 = Instance.new("LocalScript")
  23. o7 = Instance.new("ScreenGui")
  24. o8 = Instance.new("TextBox")
  25. o9 = Instance.new("TextButton")
  26. o1.Name = "Portal gun"
  27. o1.Parent = mas
  28. o1.GripPos = Vector3.new(0, -0.366941452, 0.803922653)
  29. o2.Name = "Val"
  30. o2.Parent = o1
  31. o2.Value = 32990482
  32. o5.Parent = o1
  33.  
  34. runDummyScript(function()
  35. portal = false
  36. dimension = false
  37. appear = false
  38. the = script.Parent.Val.Value
  39.  
  40. function wormhole()
  41. local c = script.Parent.ScreenGui:Clone()
  42. c.Parent = game.Players.LocalPlayer.PlayerGui
  43. c.TextButton.MouseButton1Click:connect(function()
  44. script.Parent.Val.Value = c.TextBox.Text
  45. local wormhole = Instance.new("Part")
  46. wormhole.Size = Vector3.new(5,5,0.2)
  47. wormhole.Name = "Hole"
  48. wormhole.Parent = game.Workspace
  49. wormhole.CFrame = script.Parent.Handle.CFrame
  50. wormhole.BrickColor = BrickColor.new("Lime green")
  51. wormhole.Anchored = true
  52. wormhole.CanCollide = false
  53. local click = Instance.new("ClickDetector")
  54. click.Parent = game.Workspace.Hole
  55. click.MouseClick:connect(function(player)
  56. game:GetService("TeleportService"):Teleport(script.Parent.Val.Value,player)
  57. end)
  58. wait(5)
  59. wormhole:remove()
  60. end)
  61. end
  62. script.Parent.Equipped:connect(wormhole)
  63. function remove()
  64. game.Players.LocalPlayer.PlayerGui.ScreenGui:remove()
  65. end
  66. script.Parent.Unequipped:connect(remove)
  67. end,o5)
  68.  
  69. o7.Parent = o1
  70. o8.Parent = o7
  71. o8.Position = UDim2.new(0,159,0,170)
  72. o8.Size = UDim2.new(0,205,0,50)
  73. o8.Text = "Please put the id on this from game"
  74. o8.position = UDim2.new(0,159,0,170)
  75. o8.Position = UDim2.new(0,159,0,170)
  76. o8.BackgroundColor3 = Color3.new(0.192157, 0.890196, 0.447059)
  77. o8.BorderColor3 = Color3.new(0.341176, 0.207843, 1)
  78. o8.BorderSizePixel = 5
  79. o8.Font = Enum.Font.Highway
  80. o8.FontSize = Enum.FontSize.Size14
  81. o8.TextColor3 = Color3.new(1, 0.988235, 0.643137)
  82. o8.TextStrokeColor3 = Color3.new(1, 1, 0.0941177)
  83. o9.Parent = o7
  84. o9.Position = UDim2.new(0,159,0.10000000149012,179)
  85. o9.Size = UDim2.new(0,208,0,25)
  86. o9.Text = "Click to confirm!"
  87. o9.position = UDim2.new(0,159,0.10000000149012,179)
  88. o9.Position = UDim2.new(0,159,0.10000000149012,179)
  89. o9.BackgroundColor3 = Color3.new(0.258824, 1, 0.129412)
  90. o9.Font = Enum.Font.SourceSansSemibold
  91. o9.FontSize = Enum.FontSize.Size14
  92. o9.TextColor3 = Color3.new(0.952941, 1, 0.054902)
  93. mas.Parent = workspace
  94. mas:MakeJoints()
  95. local mas1 = mas:GetChildren()
  96. for i=1,#mas1 do
  97. mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  98. ypcall(function() mas1[i]:MakeJoints() end)
  99. end
  100. mas:Destroy()
  101. for i=1,#cors do
  102. coroutine.resume(cors[i])
  103. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement