Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by PenguinAnonymous (ttyyuu12345) Editied by Dittoide
- --What's Added To M2S with Dittoide's Edit?
- --/ Better dummy script function to improve compatibility (makes it like you are running the code inside the script.)
- --/ Removed Gui In Bottom-Left for when you are making guis.
- --/ Removed "Inserting Map Please Wait" gui when selected Workspace as Place to export.
- --Credit: PenguinAnonymous for making original script, i just wanted to iron it out to my liking.
- --Errors: UnionOperation,TouchTransmitter,Camera
- local runDummyScript = function(f,scri)
- if (not scri:IsA('Script')) or (not scri:IsA('LocalScript')) then return false; end;
- local Dummy_CoRoutine = coroutine.create(function()
- getfenv().script = scri
- ypcall(function() f() end)
- end)
- table.insert(cors,Dummy_CoRoutine);
- coroutine.resume(Dummy_CoRoutine);
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "M2S_Model"
- o1 = Instance.new("Tool")
- o2 = Instance.new("NumberValue")
- o5 = Instance.new("LocalScript")
- o7 = Instance.new("ScreenGui")
- o8 = Instance.new("TextBox")
- o9 = Instance.new("TextButton")
- o1.Name = "Portal gun"
- o1.Parent = mas
- o1.GripPos = Vector3.new(0, -0.366941452, 0.803922653)
- o2.Name = "Val"
- o2.Parent = o1
- o2.Value = 32990482
- o5.Parent = o1
- runDummyScript(function()
- portal = false
- dimension = false
- appear = false
- the = script.Parent.Val.Value
- function wormhole()
- local c = script.Parent.ScreenGui:Clone()
- c.Parent = game.Players.LocalPlayer.PlayerGui
- c.TextButton.MouseButton1Click:connect(function()
- script.Parent.Val.Value = c.TextBox.Text
- local wormhole = Instance.new("Part")
- wormhole.Size = Vector3.new(5,5,0.2)
- wormhole.Name = "Hole"
- wormhole.Parent = game.Workspace
- wormhole.CFrame = script.Parent.Handle.CFrame
- wormhole.BrickColor = BrickColor.new("Lime green")
- wormhole.Anchored = true
- wormhole.CanCollide = false
- local click = Instance.new("ClickDetector")
- click.Parent = game.Workspace.Hole
- click.MouseClick:connect(function(player)
- game:GetService("TeleportService"):Teleport(script.Parent.Val.Value,player)
- end)
- wait(5)
- wormhole:remove()
- end)
- end
- script.Parent.Equipped:connect(wormhole)
- function remove()
- game.Players.LocalPlayer.PlayerGui.ScreenGui:remove()
- end
- script.Parent.Unequipped:connect(remove)
- end,o5)
- o7.Parent = o1
- o8.Parent = o7
- o8.Position = UDim2.new(0,159,0,170)
- o8.Size = UDim2.new(0,205,0,50)
- o8.Text = "Please put the id on this from game"
- o8.position = UDim2.new(0,159,0,170)
- o8.Position = UDim2.new(0,159,0,170)
- o8.BackgroundColor3 = Color3.new(0.192157, 0.890196, 0.447059)
- o8.BorderColor3 = Color3.new(0.341176, 0.207843, 1)
- o8.BorderSizePixel = 5
- o8.Font = Enum.Font.Highway
- o8.FontSize = Enum.FontSize.Size14
- o8.TextColor3 = Color3.new(1, 0.988235, 0.643137)
- o8.TextStrokeColor3 = Color3.new(1, 1, 0.0941177)
- o9.Parent = o7
- o9.Position = UDim2.new(0,159,0.10000000149012,179)
- o9.Size = UDim2.new(0,208,0,25)
- o9.Text = "Click to confirm!"
- o9.position = UDim2.new(0,159,0.10000000149012,179)
- o9.Position = UDim2.new(0,159,0.10000000149012,179)
- o9.BackgroundColor3 = Color3.new(0.258824, 1, 0.129412)
- o9.Font = Enum.Font.SourceSansSemibold
- o9.FontSize = Enum.FontSize.Size14
- o9.TextColor3 = Color3.new(0.952941, 1, 0.054902)
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement