Advertisement
Hellotop2

Untitled

Jan 26th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. -- Objects
  2.  
  3. local Obfuscator = Instance.new("ScreenGui")
  4. local Background = Instance.new("ImageLabel")
  5. local Drop_Shadow = Instance.new("ImageLabel")
  6. local Input = Instance.new("TextBox")
  7. local Output = Instance.new("TextBox")
  8. local obfuscatebutton = Instance.new("TextButton")
  9. local copybutton = Instance.new("TextButton")
  10.  
  11. -- Properties
  12.  
  13. Obfuscator.Name = "Obfuscator"
  14. Obfuscator.Parent = game.CoreGui
  15.  
  16. Background.Name = "Background"
  17. Background.Parent = Obfuscator
  18. Background.BackgroundColor3 = Color3.new(1, 1, 1)
  19. Background.BackgroundTransparency = 1
  20. Background.Position = UDim2.new(0.0488565639, 0, 0.0936454833, 0)
  21. Background.Size = UDim2.new(0.350656658, 0, 0.5, 0)
  22. Background.ZIndex = 2
  23. Background.Image = "rbxassetid://760929926"
  24. Background.ScaleType = Enum.ScaleType.Slice
  25. Background.SliceCenter = Rect.new(5, 5, 5, 5)
  26.  
  27. Drop_Shadow.Name = "Drop_Shadow"
  28. Drop_Shadow.Parent = Background
  29. Drop_Shadow.BackgroundColor3 = Color3.new(1, 1, 1)
  30. Drop_Shadow.BackgroundTransparency = 1
  31. Drop_Shadow.Position = UDim2.new(0, -35, 0, -35)
  32. Drop_Shadow.Size = UDim2.new(1, 70, 1, 70)
  33. Drop_Shadow.Image = "rbxassetid://1113384364"
  34. Drop_Shadow.ImageTransparency = 0.5
  35. Drop_Shadow.ScaleType = Enum.ScaleType.Slice
  36. Drop_Shadow.SliceCenter = Rect.new(50, 50, 50, 50)
  37.  
  38. Input.Name = "Input"
  39. Input.Parent = Background
  40. Input.BackgroundColor3 = Color3.new(1, 1, 1)
  41. Input.BorderColor3 = Color3.new(0, 0, 0)
  42. Input.BorderSizePixel = 2
  43. Input.Position = UDim2.new(0.0267522726, 0, 0.018134715, 0)
  44. Input.Size = UDim2.new(0, 200, 0, 368)
  45. Input.ZIndex = 5
  46. Input.Font = Enum.Font.SourceSans
  47. Input.Text = "Put script here you would like to obfuscate."
  48. Input.TextColor3 = Color3.new(0, 0, 0)
  49. Input.TextSize = 14
  50. Input.TextWrapped = true
  51. Input.TextXAlignment = Enum.TextXAlignment.Left
  52. Input.TextYAlignment = Enum.TextYAlignment.Top
  53.  
  54. Output.Name = "Output"
  55. Output.Parent = Background
  56. Output.BackgroundColor3 = Color3.new(1, 1, 1)
  57. Output.BorderColor3 = Color3.new(0, 0, 0)
  58. Output.BorderSizePixel = 2
  59. Output.Position = UDim2.new(0.609951854, 0, 0.023316063, 0)
  60. Output.Size = UDim2.new(0, 200, 0, 368)
  61. Output.ZIndex = 5
  62. Output.Font = Enum.Font.SourceSans
  63. Output.Text = ""
  64. Output.TextColor3 = Color3.new(0, 0, 0)
  65. Output.TextSize = 14
  66. Output.TextWrapped = true
  67. Output.TextXAlignment = Enum.TextXAlignment.Left
  68. Output.TextYAlignment = Enum.TextYAlignment.Top
  69.  
  70. obfuscatebutton.Name = "obfuscatebutton"
  71. obfuscatebutton.Parent = Background
  72. obfuscatebutton.BackgroundColor3 = Color3.new(1, 1, 1)
  73. obfuscatebutton.BackgroundTransparency = 1
  74. obfuscatebutton.BorderSizePixel = 0
  75. obfuscatebutton.Position = UDim2.new(0.383449256, 0, 0.341968924, 0)
  76. obfuscatebutton.Size = UDim2.new(0, 127, 0, 50)
  77. obfuscatebutton.ZIndex = 6
  78. obfuscatebutton.Font = Enum.Font.SourceSansLight
  79. obfuscatebutton.Text = "Obfuscate"
  80. obfuscatebutton.TextColor3 = Color3.new(0, 0, 0)
  81. obfuscatebutton.TextScaled = true
  82. obfuscatebutton.TextSize = 14
  83. obfuscatebutton.TextWrapped = true
  84.  
  85. copybutton.Name = "copybutton"
  86. copybutton.Parent = Background
  87. copybutton.BackgroundColor3 = Color3.new(1, 1, 1)
  88. copybutton.BackgroundTransparency = 1
  89. copybutton.BorderSizePixel = 0
  90. copybutton.Position = UDim2.new(0.383449256, 0, 0.489637315, 0)
  91. copybutton.Size = UDim2.new(0, 127, 0, 50)
  92. copybutton.ZIndex = 6
  93. copybutton.Font = Enum.Font.SourceSansLight
  94. copybutton.Text = "Copy"
  95. copybutton.TextColor3 = Color3.new(0, 0, 0)
  96. copybutton.TextScaled = true
  97. copybutton.TextSize = 14
  98. copybutton.TextWrapped = true
  99. local UserInputService,gui,dragging,dragInput,dragStart,startPos = game:GetService("UserInputService"),Background
  100.  
  101. local function update(input)
  102. local delta = input.Position - dragStart
  103. wait(0.1)
  104. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  105. end
  106.  
  107. gui.InputBegan:Connect(function(input)
  108. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  109. dragging = true
  110. dragStart = input.Position
  111. startPos = gui.Position
  112.  
  113. input.Changed:Connect(function()
  114. if input.UserInputState == Enum.UserInputState.End then
  115. dragging = false
  116. end
  117. end)
  118. end
  119. end)
  120.  
  121. gui.InputChanged:Connect(function(input)
  122. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  123. dragInput = input
  124. end
  125. end)
  126.  
  127. UserInputService.InputChanged:Connect(function(input)
  128. if input == dragInput and dragging then
  129. update(input)
  130. end
  131. end)
  132. obfuscatebutton.MouseButton1Click:Connect(function()
  133.  
  134. local Script = Input.Text
  135.  
  136. Script = Script
  137.  
  138. -------------------------
  139.  
  140. function Obfuscate(scr)
  141. local BooleanObf = "function IllIlllIllIlllIlllIlllIll(IllIlllIllIllIll) if (IllIlllIllIllIll==(((((919 + 636)-636)*3147)/3147)+919)) then return not true end if (IllIlllIllIllIll==(((((968 + 670)-670)*3315)/3315)+968)) then return not false end end; "
  142. local bat = BooleanObf
  143.  
  144. ---------------------
  145.  
  146. local Ret = ""
  147. local VarNames = {"IllIllIllIllI", "IIlllIIlllIIlllIIlllII", "IIllllIIllll"}
  148. local Beg = [[local IlIlIlIlIlIlIlIlII = {]]
  149.  
  150. ----------------------
  151.  
  152. local LoadstringVariable = [[local IllIIllIIllIII = loadstring]]
  153. local ConcatVariable = [[local IllIIIllIIIIllI = table.concat]]
  154. local EmptyString = [[local IIIIIIIIllllllllIIIIIIII = "''"]]
  155.  
  156. local ConfuseVarO = "local "..VarNames[math.random(1, #VarNames)].." = (7*3-9/9+3*2/0+3*3);"
  157. local ConfuseVarT = "local "..VarNames[math.random(1, #VarNames)].." = (3*4-7/7+6*4/3+9*9);"
  158.  
  159. ----------------------
  160.  
  161. for i=1, string.len(scr) do
  162. Ret = Ret.."'\\"..string.byte(scr, i).."',"
  163. end
  164.  
  165. ---------------------
  166.  
  167. local UselessFunctionStart = "function IllIIIIllIIIIIl("..VarNames[math.random(1, #VarNames)]..")"
  168. local UselessFunctionContent = "function "..VarNames[math.random(1, #VarNames)].."("..VarNames[math.random(1, #VarNames)]..")"
  169. local UselessFunctionContentT = "local "..VarNames[math.random(1, #VarNames)].." = (5*3-2/8+9*2/9+8*3)"
  170. local UselessFunctionEnd = "end"
  171. local UselessFunctionCall = "IllIIIIllIIIIIl(900283)"
  172.  
  173. local UselessFunctionStartT = "function IllIlllIllIlllIlllIlllIllIlllIIIlll("..VarNames[math.random(1, #VarNames)]..")"
  174. local UselessFunctionContentT = "function "..VarNames[math.random(1, #VarNames)].."("..VarNames[math.random(1, #VarNames)]..")"
  175. local UselessFunctionContentTT = "local "..VarNames[math.random(1, #VarNames)].." = (9*0-7/5+3*1/3+8*2)"
  176. local UselessFunctionEndT = "end"
  177. local UselessFunctionCallT = "IllIlllIllIlllIlllIlllIllIlllIIIlll(9083)"
  178.  
  179. ----------------------
  180.  
  181. local FinalRet = bat..ConfuseVarO..ConfuseVarT..ConcatVariable..";"..UselessFunctionStart.." "..UselessFunctionContent.." "..UselessFunctionContentT.." "..UselessFunctionEnd.." "..UselessFunctionEnd.." "..UselessFunctionEnd..";"..UselessFunctionCall..";"..UselessFunctionStartT.." "..UselessFunctionContentT.." "..UselessFunctionContentTT.." "..UselessFunctionEndT.." "..UselessFunctionEndT..";"..UselessFunctionCallT..";"..LoadstringVariable..";"..Beg..Ret.."}".."IllIIllIIllIII(IllIIIllIIIIllI(IlIlIlIlIlIlIlIlII,IIIIIIIIllllllllIIIIIIII))()"
  182.  
  183. ----------------------
  184.  
  185. Output.Text = FinalRet
  186. end
  187.  
  188. do Obfuscate(Script) end
  189. end)
  190. copybutton.MouseButton1Click:Connect(function()
  191. syn.write_clipboard(Output.Text)
  192. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement