Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ScreenGui1 = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"))
- Frame1 = Instance.new("Frame",ScreenGui1)
- Frame2 = Instance.new("Frame", Frame1)
- TextLabel1 = Instance.new("TextLabel", Frame2)
- TextBox1 = Instance.new("TextBox", Frame1)
- TextButton1 = Instance.new("TextButton",Frame1)
- TextLabel2 = Instance.new("TextLabel", Frame1)
- ScreenGui1.DisplayOrder = 0
- ScreenGui1.Enabled = true
- ScreenGui1.IgnoreGuiInset = false
- ScreenGui1.Name = "ScreenGui"
- ScreenGui1.ResetOnSpawn = false
- ScreenGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui1.Archivable = true
- ScreenGui1.AutoLocalize = true
- Frame1.Active = false
- Frame1.AnchorPoint = Vector2.new(0, 0)
- Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame1.BackgroundTransparency = 0
- Frame1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- Frame1.BorderSizePixel = 1
- Frame1.LayoutOrder = 0
- Frame1.Name = "Frame"
- Frame1.Position = UDim2.new(0.27579736709595, 0, 0.43930637836456, 0)
- Frame1.Rotation = 0
- Frame1.Selectable = false
- Frame1.Size = UDim2.new(0, 223, 0, 156)
- Frame1.SizeConstraint = Enum.SizeConstraint.RelativeXY
- Frame1.Style = Enum.FrameStyle.Custom
- Frame1.Visible = true
- Frame1.ZIndex = 1
- Frame1.Archivable = true
- Frame1.ClipsDescendants = false
- Frame1.AutoLocalize = true
- Frame1.Active=true
- Frame1.Draggable=true
- Frame2.Active = false
- Frame2.AnchorPoint = Vector2.new(0, 0)
- Frame2.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame2.BackgroundTransparency = 0
- Frame2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- Frame2.BorderSizePixel = 1
- Frame2.LayoutOrder = 0
- Frame2.Name = "Frame"
- Frame2.Position = UDim2.new(0, 0, 0, 0)
- Frame2.Rotation = 0
- Frame2.Selectable = false
- Frame2.Size = UDim2.new(0, 223, 0, 31)
- Frame2.SizeConstraint = Enum.SizeConstraint.RelativeXY
- Frame2.Style = Enum.FrameStyle.Custom
- Frame2.Visible = true
- Frame2.ZIndex = 1
- Frame2.Archivable = true
- Frame2.ClipsDescendants = false
- Frame2.AutoLocalize = true
- Frame2.Active=true
- TextLabel1.Active = false
- TextLabel1.AnchorPoint = Vector2.new(0, 0)
- TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel1.BackgroundTransparency = 1
- TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel1.BorderSizePixel = 1
- TextLabel1.LayoutOrder = 0
- TextLabel1.Name = "TextLabel"
- TextLabel1.Position = UDim2.new(0.1165919303894, 0, 0, 0)
- TextLabel1.Rotation = 0
- TextLabel1.Selectable = false
- TextLabel1.Size = UDim2.new(0, 171, 0, 31)
- TextLabel1.SizeConstraint = Enum.SizeConstraint.RelativeXY
- TextLabel1.Visible = true
- TextLabel1.ZIndex = 1
- TextLabel1.Archivable = true
- TextLabel1.ClipsDescendants = false
- TextLabel1.AutoLocalize = true
- TextLabel1.Font = Enum.Font.SourceSans
- TextLabel1.Text = "MDC V.0.0"
- TextLabel1.TextColor3 = Color3.new(1, 1, 1)
- TextLabel1.TextScaled = true
- TextLabel1.TextSize = 14
- TextLabel1.TextStrokeColor3 = Color3.new(0, 0, 0)
- TextLabel1.TextStrokeTransparency = 1
- TextLabel1.TextTransparency = 0
- TextLabel1.TextTruncate = Enum.TextTruncate.None
- TextLabel1.TextWrapped = true
- TextLabel1.TextXAlignment = Enum.TextXAlignment.Center
- TextLabel1.TextYAlignment = Enum.TextYAlignment.Center
- TextBox1.Active = true
- TextBox1.AnchorPoint = Vector2.new(0, 0)
- TextBox1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox1.BackgroundTransparency = 0
- TextBox1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextBox1.BorderSizePixel = 1
- TextBox1.ClearTextOnFocus = true
- TextBox1.CursorPosition = -1
- TextBox1.LayoutOrder = 0
- TextBox1.MultiLine = false
- TextBox1.Name = "TextBox"
- TextBox1.Position = UDim2.new(0.049327354878187, 0, 0.32692310214043, 0)
- TextBox1.Rotation = 0
- TextBox1.Selectable = true
- TextBox1.ShowNativeInput = true
- TextBox1.Size = UDim2.new(0, 200, 0, 22)
- TextBox1.SizeConstraint = Enum.SizeConstraint.RelativeXY
- TextBox1.Visible = true
- TextBox1.ZIndex = 1
- TextBox1.Archivable = true
- TextBox1.ClipsDescendants = false
- TextBox1.AutoLocalize = true
- TextBox1.Font = Enum.Font.SourceSans
- TextBox1.LineHeight = 1
- TextBox1.PlaceholderText = "Name of file"
- TextBox1.Text = ""
- TextBox1.TextColor3 = Color3.new(0, 0, 0)
- TextBox1.TextScaled = false
- TextBox1.TextSize = 14
- TextBox1.TextStrokeTransparency = 1
- TextBox1.TextTransparency = 0
- TextBox1.TextTruncate = Enum.TextTruncate.None
- TextBox1.TextWrapped = false
- TextBox1.TextXAlignment = Enum.TextXAlignment.Center
- TextBox1.TextYAlignment = Enum.TextYAlignment.Center
- TextButton1.Active = true
- TextButton1.AnchorPoint = Vector2.new(0, 0)
- TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton1.BackgroundTransparency = 0
- TextButton1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextButton1.BorderSizePixel = 1
- TextButton1.LayoutOrder = 0
- TextButton1.Modal = false
- TextButton1.Name = "TextButton"
- TextButton1.Position = UDim2.new(0.049327354878187, 0, 0.76923078298569, 0)
- TextButton1.Rotation = 0
- TextButton1.Selectable = true
- TextButton1.Selected = false
- TextButton1.Size = UDim2.new(0, 200, 0, 18)
- TextButton1.SizeConstraint = Enum.SizeConstraint.RelativeXY
- TextButton1.Style = Enum.ButtonStyle.RobloxButton
- TextButton1.Visible = true
- TextButton1.ZIndex = 1
- TextButton1.Archivable = true
- TextButton1.ClipsDescendants = false
- TextButton1.AutoLocalize = true
- TextButton1.Font = Enum.Font.SourceSans
- TextButton1.Text = "Execute"
- TextButton1.TextColor3 = Color3.new(1, 1, 1)
- TextButton1.TextScaled = false
- TextButton1.TextSize = 14
- TextButton1.TextStrokeColor3 = Color3.new(0, 0, 0)
- TextButton1.TextStrokeTransparency = 1
- TextButton1.TextTransparency = 0
- TextButton1.TextTruncate = Enum.TextTruncate.None
- TextButton1.TextWrapped = false
- TextButton1.TextXAlignment = Enum.TextXAlignment.Center
- TextButton1.TextYAlignment = Enum.TextYAlignment.Center
- TextLabel2.Active = false
- TextLabel2.AnchorPoint = Vector2.new(0, 0)
- TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel2.BackgroundTransparency = 1
- TextLabel2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel2.BorderSizePixel = 1
- TextLabel2.LayoutOrder = 0
- TextLabel2.Name = "TextLabel"
- TextLabel2.Position = UDim2.new(0.049327354878187, 0, 0.51923078298569, 0)
- TextLabel2.Rotation = 0
- TextLabel2.Selectable = false
- TextLabel2.Size = UDim2.new(0, 200, 0, 33)
- TextLabel2.SizeConstraint = Enum.SizeConstraint.RelativeXY
- TextLabel2.Visible = true
- TextLabel2.ZIndex = 1
- TextLabel2.Archivable = true
- TextLabel2.ClipsDescendants = false
- TextLabel2.AutoLocalize = true
- TextLabel2.Font = Enum.Font.SourceSans
- TextLabel2.Text = "0/0"
- TextLabel2.TextColor3 = Color3.new(0, 0, 0)
- TextLabel2.TextScaled = true
- TextLabel2.TextSize = 14
- TextLabel2.TextStrokeColor3 = Color3.new(0, 0, 0)
- TextLabel2.TextStrokeTransparency = 1
- TextLabel2.TextTransparency = 0
- TextLabel2.TextTruncate = Enum.TextTruncate.None
- TextLabel2.TextWrapped = true
- TextLabel2.TextXAlignment = Enum.TextXAlignment.Center
- TextLabel2.TextYAlignment = Enum.TextYAlignment.Center
- function Decompile()
- warn("Starting")
- local code=""
- local index=1
- local child=workspace.Map:GetChildren()
- local RS
- local done=false
- local function rs()
- if index==#child then
- done=true
- RS:Disconnect()
- end
- local v=child[index]
- if v~=nil then
- code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1
- code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1
- code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1
- code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1
- code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1
- code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1
- code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1
- code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- index=index+1 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
- end
- TextLabel2.Text=tostring(index).."/"..tostring(#child)
- end
- RS= game:GetService("RunService").RenderStepped:Connect(rs)
- while done==false do wait() end
- warn("DONE")
- return code
- end
- TextButton1.MouseButton1Click:Connect(function()
- writefile(TextBox1.Text..".txt",Decompile())
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement