Advertisement
Guest User

Synapse X Minecraft Decompiler

a guest
Nov 12th, 2019
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.25 KB | None | 0 0
  1. ScreenGui1 = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"))
  2. Frame1 = Instance.new("Frame",ScreenGui1)
  3. Frame2 = Instance.new("Frame", Frame1)
  4. TextLabel1 = Instance.new("TextLabel", Frame2)
  5. TextBox1 = Instance.new("TextBox", Frame1)
  6. TextButton1 = Instance.new("TextButton",Frame1)
  7. TextLabel2 = Instance.new("TextLabel", Frame1)
  8.  
  9.  
  10. ScreenGui1.DisplayOrder = 0
  11. ScreenGui1.Enabled = true
  12. ScreenGui1.IgnoreGuiInset = false
  13. ScreenGui1.Name = "ScreenGui"
  14. ScreenGui1.ResetOnSpawn = false
  15. ScreenGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16. ScreenGui1.Archivable = true
  17. ScreenGui1.AutoLocalize = true
  18.  
  19.  
  20. Frame1.Active = false
  21. Frame1.AnchorPoint = Vector2.new(0, 0)
  22. Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  23. Frame1.BackgroundTransparency = 0
  24. Frame1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  25. Frame1.BorderSizePixel = 1
  26. Frame1.LayoutOrder = 0
  27. Frame1.Name = "Frame"
  28. Frame1.Position = UDim2.new(0.27579736709595, 0, 0.43930637836456, 0)
  29. Frame1.Rotation = 0
  30. Frame1.Selectable = false
  31. Frame1.Size = UDim2.new(0, 223, 0, 156)
  32. Frame1.SizeConstraint = Enum.SizeConstraint.RelativeXY
  33. Frame1.Style = Enum.FrameStyle.Custom
  34. Frame1.Visible = true
  35. Frame1.ZIndex = 1
  36. Frame1.Archivable = true
  37. Frame1.ClipsDescendants = false
  38. Frame1.AutoLocalize = true
  39. Frame1.Active=true
  40. Frame1.Draggable=true
  41.  
  42. Frame2.Active = false
  43. Frame2.AnchorPoint = Vector2.new(0, 0)
  44. Frame2.BackgroundColor3 = Color3.new(0, 0, 0)
  45. Frame2.BackgroundTransparency = 0
  46. Frame2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  47. Frame2.BorderSizePixel = 1
  48. Frame2.LayoutOrder = 0
  49. Frame2.Name = "Frame"
  50. Frame2.Position = UDim2.new(0, 0, 0, 0)
  51. Frame2.Rotation = 0
  52. Frame2.Selectable = false
  53. Frame2.Size = UDim2.new(0, 223, 0, 31)
  54. Frame2.SizeConstraint = Enum.SizeConstraint.RelativeXY
  55. Frame2.Style = Enum.FrameStyle.Custom
  56. Frame2.Visible = true
  57. Frame2.ZIndex = 1
  58. Frame2.Archivable = true
  59. Frame2.ClipsDescendants = false
  60. Frame2.AutoLocalize = true
  61. Frame2.Active=true
  62.  
  63. TextLabel1.Active = false
  64. TextLabel1.AnchorPoint = Vector2.new(0, 0)
  65. TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  66. TextLabel1.BackgroundTransparency = 1
  67. TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  68. TextLabel1.BorderSizePixel = 1
  69. TextLabel1.LayoutOrder = 0
  70. TextLabel1.Name = "TextLabel"
  71. TextLabel1.Position = UDim2.new(0.1165919303894, 0, 0, 0)
  72. TextLabel1.Rotation = 0
  73. TextLabel1.Selectable = false
  74. TextLabel1.Size = UDim2.new(0, 171, 0, 31)
  75. TextLabel1.SizeConstraint = Enum.SizeConstraint.RelativeXY
  76. TextLabel1.Visible = true
  77. TextLabel1.ZIndex = 1
  78. TextLabel1.Archivable = true
  79. TextLabel1.ClipsDescendants = false
  80. TextLabel1.AutoLocalize = true
  81. TextLabel1.Font = Enum.Font.SourceSans
  82. TextLabel1.Text = "MDC V.0.0"
  83. TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  84. TextLabel1.TextScaled = true
  85. TextLabel1.TextSize = 14
  86. TextLabel1.TextStrokeColor3 = Color3.new(0, 0, 0)
  87. TextLabel1.TextStrokeTransparency = 1
  88. TextLabel1.TextTransparency = 0
  89. TextLabel1.TextTruncate = Enum.TextTruncate.None
  90. TextLabel1.TextWrapped = true
  91. TextLabel1.TextXAlignment = Enum.TextXAlignment.Center
  92. TextLabel1.TextYAlignment = Enum.TextYAlignment.Center
  93.  
  94.  
  95. TextBox1.Active = true
  96. TextBox1.AnchorPoint = Vector2.new(0, 0)
  97. TextBox1.BackgroundColor3 = Color3.new(1, 1, 1)
  98. TextBox1.BackgroundTransparency = 0
  99. TextBox1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  100. TextBox1.BorderSizePixel = 1
  101. TextBox1.ClearTextOnFocus = true
  102. TextBox1.CursorPosition = -1
  103. TextBox1.LayoutOrder = 0
  104. TextBox1.MultiLine = false
  105. TextBox1.Name = "TextBox"
  106. TextBox1.Position = UDim2.new(0.049327354878187, 0, 0.32692310214043, 0)
  107. TextBox1.Rotation = 0
  108. TextBox1.Selectable = true
  109. TextBox1.ShowNativeInput = true
  110. TextBox1.Size = UDim2.new(0, 200, 0, 22)
  111. TextBox1.SizeConstraint = Enum.SizeConstraint.RelativeXY
  112. TextBox1.Visible = true
  113. TextBox1.ZIndex = 1
  114. TextBox1.Archivable = true
  115. TextBox1.ClipsDescendants = false
  116. TextBox1.AutoLocalize = true
  117. TextBox1.Font = Enum.Font.SourceSans
  118. TextBox1.LineHeight = 1
  119. TextBox1.PlaceholderText = "Name of file"
  120. TextBox1.Text = ""
  121. TextBox1.TextColor3 = Color3.new(0, 0, 0)
  122. TextBox1.TextScaled = false
  123. TextBox1.TextSize = 14
  124. TextBox1.TextStrokeTransparency = 1
  125. TextBox1.TextTransparency = 0
  126. TextBox1.TextTruncate = Enum.TextTruncate.None
  127. TextBox1.TextWrapped = false
  128. TextBox1.TextXAlignment = Enum.TextXAlignment.Center
  129. TextBox1.TextYAlignment = Enum.TextYAlignment.Center
  130.  
  131.  
  132. TextButton1.Active = true
  133. TextButton1.AnchorPoint = Vector2.new(0, 0)
  134. TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
  135. TextButton1.BackgroundTransparency = 0
  136. TextButton1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  137. TextButton1.BorderSizePixel = 1
  138. TextButton1.LayoutOrder = 0
  139. TextButton1.Modal = false
  140. TextButton1.Name = "TextButton"
  141. TextButton1.Position = UDim2.new(0.049327354878187, 0, 0.76923078298569, 0)
  142. TextButton1.Rotation = 0
  143. TextButton1.Selectable = true
  144. TextButton1.Selected = false
  145. TextButton1.Size = UDim2.new(0, 200, 0, 18)
  146. TextButton1.SizeConstraint = Enum.SizeConstraint.RelativeXY
  147. TextButton1.Style = Enum.ButtonStyle.RobloxButton
  148. TextButton1.Visible = true
  149. TextButton1.ZIndex = 1
  150. TextButton1.Archivable = true
  151. TextButton1.ClipsDescendants = false
  152. TextButton1.AutoLocalize = true
  153. TextButton1.Font = Enum.Font.SourceSans
  154. TextButton1.Text = "Execute"
  155. TextButton1.TextColor3 = Color3.new(1, 1, 1)
  156. TextButton1.TextScaled = false
  157. TextButton1.TextSize = 14
  158. TextButton1.TextStrokeColor3 = Color3.new(0, 0, 0)
  159. TextButton1.TextStrokeTransparency = 1
  160. TextButton1.TextTransparency = 0
  161. TextButton1.TextTruncate = Enum.TextTruncate.None
  162. TextButton1.TextWrapped = false
  163. TextButton1.TextXAlignment = Enum.TextXAlignment.Center
  164. TextButton1.TextYAlignment = Enum.TextYAlignment.Center
  165.  
  166.  
  167. TextLabel2.Active = false
  168. TextLabel2.AnchorPoint = Vector2.new(0, 0)
  169. TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
  170. TextLabel2.BackgroundTransparency = 1
  171. TextLabel2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  172. TextLabel2.BorderSizePixel = 1
  173. TextLabel2.LayoutOrder = 0
  174. TextLabel2.Name = "TextLabel"
  175. TextLabel2.Position = UDim2.new(0.049327354878187, 0, 0.51923078298569, 0)
  176. TextLabel2.Rotation = 0
  177. TextLabel2.Selectable = false
  178. TextLabel2.Size = UDim2.new(0, 200, 0, 33)
  179. TextLabel2.SizeConstraint = Enum.SizeConstraint.RelativeXY
  180. TextLabel2.Visible = true
  181. TextLabel2.ZIndex = 1
  182. TextLabel2.Archivable = true
  183. TextLabel2.ClipsDescendants = false
  184. TextLabel2.AutoLocalize = true
  185. TextLabel2.Font = Enum.Font.SourceSans
  186. TextLabel2.Text = "0/0"
  187. TextLabel2.TextColor3 = Color3.new(0, 0, 0)
  188. TextLabel2.TextScaled = true
  189. TextLabel2.TextSize = 14
  190. TextLabel2.TextStrokeColor3 = Color3.new(0, 0, 0)
  191. TextLabel2.TextStrokeTransparency = 1
  192. TextLabel2.TextTransparency = 0
  193. TextLabel2.TextTruncate = Enum.TextTruncate.None
  194. TextLabel2.TextWrapped = true
  195. TextLabel2.TextXAlignment = Enum.TextXAlignment.Center
  196. TextLabel2.TextYAlignment = Enum.TextYAlignment.Center
  197. function Decompile()
  198.     warn("Starting")
  199.     local code=""
  200.     local index=1
  201.     local child=workspace.Map:GetChildren()
  202.     local RS
  203.     local done=false
  204.     local function rs()
  205.         if index==#child then
  206.             done=true
  207.             RS:Disconnect()
  208.         end
  209.         local v=child[index]
  210.         if v~=nil then
  211.         code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  212.         index=index+1
  213.         code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  214.         index=index+1
  215.         code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  216.         index=index+1
  217.         code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  218.         index=index+1
  219.         code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  220.         index=index+1
  221.                 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  222.         index=index+1
  223.                 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  224.         index=index+1
  225.                 code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  226.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  227.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  228.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  229.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  230.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  231.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  232.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  233.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  234.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  235.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  236.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  237.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  238.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  239.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  240.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  241.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  242.         index=index+1       code=code.." game.ReplicatedStorage.block:FireServer("..tostring(v.Position)..",'"..v.Name.."') "
  243.         end
  244.         TextLabel2.Text=tostring(index).."/"..tostring(#child)
  245.     end
  246.     RS= game:GetService("RunService").RenderStepped:Connect(rs)
  247.     while done==false do wait() end
  248.     warn("DONE")
  249.     return code
  250. end
  251. TextButton1.MouseButton1Click:Connect(function()
  252.     writefile(TextBox1.Text..".txt",Decompile())
  253. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement