Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local Obfuscater = Instance.new("ScreenGui")
- local Background = Instance.new("Frame")
- local obthisscriptoutput = Instance.new("TextBox")
- local okhere = Instance.new("TextBox")
- local obbutton = Instance.new("TextButton")
- local cobutton = Instance.new("TextButton")
- -- Properties
- Obfuscater.Name = "Obfuscater"
- Obfuscater.Parent = game.CoreGui
- Background.Name = "Background"
- Background.Parent = Obfuscater
- Background.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
- Background.BorderSizePixel = 0
- Background.Position = UDim2.new(0.26220277, 0, 0.17118226, 0)
- Background.Size = UDim2.new(0, 823, 0, 458)
- obthisscriptoutput.Name = "obthisscriptoutput"
- obthisscriptoutput.Parent = Background
- obthisscriptoutput.BackgroundColor3 = Color3.new(1, 1, 1)
- obthisscriptoutput.BorderSizePixel = 0
- obthisscriptoutput.Size = UDim2.new(0, 357, 0, 458)
- obthisscriptoutput.Font = Enum.Font.SourceSansLight
- obthisscriptoutput.Text = "Script you want to be obfuscated."
- obthisscriptoutput.TextColor3 = Color3.new(0, 0, 0)
- obthisscriptoutput.TextSize = 14
- obthisscriptoutput.TextWrapped = true
- obthisscriptoutput.TextXAlignment = Enum.TextXAlignment.Left
- obthisscriptoutput.TextYAlignment = Enum.TextYAlignment.Top
- okhere.Name = "okhere"
- okhere.Parent = Background
- okhere.BackgroundColor3 = Color3.new(1, 1, 1)
- okhere.BorderSizePixel = 0
- okhere.Position = UDim2.new(0.566221118, 0, 0, 0)
- okhere.Size = UDim2.new(0, 357, 0, 458)
- okhere.Font = Enum.Font.SourceSansLight
- okhere.Text = "This is your obfuscated script"
- okhere.TextColor3 = Color3.new(0, 0, 0)
- okhere.TextSize = 14
- okhere.TextWrapped = true
- okhere.TextXAlignment = Enum.TextXAlignment.Left
- okhere.TextYAlignment = Enum.TextYAlignment.Top
- obbutton.Name = "obbutton"
- obbutton.Parent = Background
- obbutton.BackgroundColor3 = Color3.new(0.329412, 1, 0.372549)
- obbutton.BorderSizePixel = 0
- obbutton.Position = UDim2.new(0.433778852, 0, 0.246724904, 0)
- obbutton.Size = UDim2.new(0, 109, 0, 50)
- obbutton.Font = Enum.Font.SourceSansLight
- obbutton.Text = "Obfuscate"
- obbutton.TextColor3 = Color3.new(1, 1, 1)
- obbutton.TextScaled = true
- obbutton.TextSize = 14
- obbutton.TextWrapped = true
- cobutton.Name = "cobutton"
- cobutton.Parent = Background
- cobutton.BackgroundColor3 = Color3.new(0.329412, 1, 0.372549)
- cobutton.BorderSizePixel = 0
- cobutton.Position = UDim2.new(0.433778852, 0, 0.489082992, 0)
- cobutton.Size = UDim2.new(0, 109, 0, 50)
- cobutton.Font = Enum.Font.SourceSansLight
- cobutton.Text = "Copy"
- cobutton.TextColor3 = Color3.new(1, 1, 1)
- cobutton.TextScaled = true
- cobutton.TextSize = 14
- cobutton.TextWrapped = true
- obbutton.MouseButton1Click:Connect(function()
- -- By Sikke
- local Script = obthisscriptoutput.Text -- < Put script here
- --
- function Encode(Text)
- Text = tostring(Text)
- local Table = {}
- for i = 1, #Text do
- local T = Text:sub(i, i)
- table.insert(Table, T)
- end
- local T = {}
- local MyText = "'"
- for i, v in pairs(Table) do
- local Key = string.byte(v)
- MyText = MyText..math.floor(Key/128)
- Key = Key % 128
- MyText = MyText..math.floor(Key/64)
- Key = Key % 64
- MyText = MyText..math.floor(Key/32)
- Key = Key % 32
- MyText = MyText..math.floor(Key/16)
- Key = Key % 16
- MyText = MyText..math.floor(Key/8)
- Key = Key % 8
- MyText = MyText..math.floor(Key/4)
- Key = Key % 4
- MyText = MyText..math.floor(Key/2)
- Key = Key % 2
- MyText = MyText..math.floor(Key/1)
- Key = Key % 1
- MyText=MyText.."','"
- end
- MyText = MyText:sub(1, #MyText -1)
- if tonumber(MyText) then
- MyText = tonumber(MyText)
- end
- return MyText
- end
- -- ENCODE
- local Encoded = Encode(Script)
- okhere.Text = [[local BinaryEncrypted = ]].."table.concat({"..Encoded.."})"..[[ function decode(str) local function binary_to_string(bin) return string.char(tonumber(bin, 2));end;return (str:gsub("(".. ("[01]"):rep(8) .. ")", binary_to_string));end;local Binary = BinaryEncrypted _G.EncodedBinary = decode(Binary);loadstring(_G.EncodedBinary)()]]
- end)
- cobutton.MouseButton1Click:Connect(function()
- syn.write_clipboard(obthisscriptoutput.Text)
- end)
- local UserInputService,gui,dragging,dragInput,dragStart,startPos = game:GetService("UserInputService"),Background
- local function update(input)
- local delta = input.Position - dragStart
- wait(0.1)
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement