Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.6
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- local Frame_2 = Instance.new("Frame")
- local UIStroke_2 = Instance.new("UIStroke")
- local UIGradient = Instance.new("UIGradient")
- local EditorFrame = Instance.new("ScrollingFrame")
- local Source = Instance.new("TextBox")
- local Comments_ = Instance.new("TextLabel")
- local Globals_ = Instance.new("TextLabel")
- local Keywords_ = Instance.new("TextLabel")
- local RemoteHighlight_ = Instance.new("TextLabel")
- local Strings_ = Instance.new("TextLabel")
- local Tokens_ = Instance.new("TextLabel")
- local Numbers_ = Instance.new("TextLabel")
- local Lines = Instance.new("TextLabel")
- local UIStroke_3 = Instance.new("UIStroke")
- local UICorner_2 = Instance.new("UICorner")
- local Run = Instance.new("TextButton")
- local UIStroke_4 = Instance.new("UIStroke")
- local UICorner_3 = Instance.new("UICorner")
- local Clear = Instance.new("TextButton")
- local UIStroke_5 = Instance.new("UIStroke")
- local UICorner_4 = Instance.new("UICorner")
- local Auto = Instance.new("TextButton")
- local UIStroke_6 = Instance.new("UIStroke")
- local UICorner_5 = Instance.new("UICorner")
- local Amount = Instance.new("TextBox")
- local UIStroke_7 = Instance.new("UIStroke")
- local UICorner_6 = Instance.new("UICorner")
- local TextLabel = Instance.new("TextLabel")
- local gui = Instance.new("ScreenGui",Frame)
- local nextb = Instance.new("ImageButton", gui)
- local gui = Instance.new("UICorner", nextb)
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ResetOnSpawn = false
- nextb.Position = UDim2.new(0,100,0,60)
- nextb.Size = UDim2.new(0,40,0,40)
- nextb.BackgroundColor3 = Color3.fromRGB(18,18,18)
- nextb.Image = "rbxassetid://7072720870"
- nextb.Active = true
- nextb.Draggable = true
- nextb.MouseButton1Down:connect(function()
- nextb.Image = (Frame.Visible and "rbxassetid://7072720870") or "rbxassetid://7072719338"
- Frame.Visible = not Frame.Visible
- end)
- Frame.Parent = ScreenGui
- Frame.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
- Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame.Size = UDim2.new(0, 495, 0, 284)
- UICorner.Parent = Frame
- UIStroke.Color = Color3.fromRGB(134, 134, 134)
- UIStroke.Thickness = 1.2999999523162842
- UIStroke.Parent = Frame
- Frame_2.Parent = Frame
- Frame_2.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
- Frame_2.BackgroundTransparency = 1.000
- Frame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame_2.BorderSizePixel = 0
- Frame_2.Position = UDim2.new(0, 0, 0.112676054, 0)
- Frame_2.Size = UDim2.new(0, 495, 0, 252)
- UIStroke_2.Color = Color3.fromRGB(134, 134, 134)
- UIStroke_2.Thickness = 1.2999999523162842
- UIStroke_2.Parent = Frame_2
- UIGradient.Rotation = 90
- UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.00), NumberSequenceKeypoint.new(1.00, 1.00), NumberSequenceKeypoint.new(1.00, 0.00)}
- UIGradient.Parent = UIStroke_2
- EditorFrame.Name = "EditorFrame"
- EditorFrame.Parent = Frame_2
- EditorFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
- EditorFrame.BorderColor3 = Color3.fromRGB(61, 61, 61)
- EditorFrame.BorderSizePixel = 0
- EditorFrame.Position = UDim2.new(0, 11, 0, 10)
- EditorFrame.Size = UDim2.new(0, 472, 0, 199)
- EditorFrame.ZIndex = 3
- EditorFrame.BottomImage = "rbxassetid://148970562"
- EditorFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- EditorFrame.HorizontalScrollBarInset = Enum.ScrollBarInset.ScrollBar
- EditorFrame.MidImage = "rbxassetid://148970562"
- EditorFrame.ScrollBarThickness = 5
- EditorFrame.TopImage = "rbxassetid://148970562"
- Source.Name = "Source"
- Source.Parent = EditorFrame
- Source.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Source.BackgroundTransparency = 1.000
- Source.Position = UDim2.new(0, 30, 0, 0)
- Source.Size = UDim2.new(1.36652553, 0, 2.13065338, 0)
- Source.ZIndex = 3
- Source.ClearTextOnFocus = false
- Source.Font = Enum.Font.Code
- Source.MultiLine = true
- Source.PlaceholderColor3 = Color3.fromRGB(204, 204, 204)
- Source.Text = ""
- Source.TextColor3 = Color3.fromRGB(204, 204, 204)
- Source.TextSize = 15.000
- Source.TextXAlignment = Enum.TextXAlignment.Left
- Source.TextYAlignment = Enum.TextYAlignment.Top
- Comments_.Name = "Comments_"
- Comments_.Parent = Source
- Comments_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Comments_.BackgroundTransparency = 1.000
- Comments_.Size = UDim2.new(1, 0, 1, 0)
- Comments_.ZIndex = 5
- Comments_.Font = Enum.Font.Code
- Comments_.Text = ""
- Comments_.TextColor3 = Color3.fromRGB(153, 153, 153)
- Comments_.TextSize = 15.000
- Comments_.TextXAlignment = Enum.TextXAlignment.Left
- Comments_.TextYAlignment = Enum.TextYAlignment.Top
- Globals_.Name = "Globals_"
- Globals_.Parent = Source
- Globals_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Globals_.BackgroundTransparency = 1.000
- Globals_.Size = UDim2.new(1, 0, 1, 0)
- Globals_.ZIndex = 5
- Globals_.Font = Enum.Font.Code
- Globals_.Text = ""
- Globals_.TextColor3 = Color3.fromRGB(102, 204, 204)
- Globals_.TextSize = 15.000
- Globals_.TextXAlignment = Enum.TextXAlignment.Left
- Globals_.TextYAlignment = Enum.TextYAlignment.Top
- Keywords_.Name = "Keywords_"
- Keywords_.Parent = Source
- Keywords_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Keywords_.BackgroundTransparency = 1.000
- Keywords_.Size = UDim2.new(1, 0, 1, 0)
- Keywords_.ZIndex = 5
- Keywords_.Font = Enum.Font.Code
- Keywords_.Text = ""
- Keywords_.TextColor3 = Color3.fromRGB(242, 119, 122)
- Keywords_.TextSize = 15.000
- Keywords_.TextXAlignment = Enum.TextXAlignment.Left
- Keywords_.TextYAlignment = Enum.TextYAlignment.Top
- RemoteHighlight_.Name = "RemoteHighlight_"
- RemoteHighlight_.Parent = Source
- RemoteHighlight_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RemoteHighlight_.BackgroundTransparency = 1.000
- RemoteHighlight_.Size = UDim2.new(1, 0, 1, 0)
- RemoteHighlight_.ZIndex = 5
- RemoteHighlight_.Font = Enum.Font.Code
- RemoteHighlight_.Text = ""
- RemoteHighlight_.TextColor3 = Color3.fromRGB(102, 153, 204)
- RemoteHighlight_.TextSize = 15.000
- RemoteHighlight_.TextXAlignment = Enum.TextXAlignment.Left
- RemoteHighlight_.TextYAlignment = Enum.TextYAlignment.Top
- Strings_.Name = "Strings_"
- Strings_.Parent = Source
- Strings_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Strings_.BackgroundTransparency = 1.000
- Strings_.Size = UDim2.new(1, 0, 1, 0)
- Strings_.ZIndex = 5
- Strings_.Font = Enum.Font.Code
- Strings_.Text = ""
- Strings_.TextColor3 = Color3.fromRGB(153, 204, 153)
- Strings_.TextSize = 15.000
- Strings_.TextXAlignment = Enum.TextXAlignment.Left
- Strings_.TextYAlignment = Enum.TextYAlignment.Top
- Tokens_.Name = "Tokens_"
- Tokens_.Parent = Source
- Tokens_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Tokens_.BackgroundTransparency = 1.000
- Tokens_.Size = UDim2.new(1, 0, 1, 0)
- Tokens_.ZIndex = 5
- Tokens_.Font = Enum.Font.Code
- Tokens_.Text = ""
- Tokens_.TextColor3 = Color3.fromRGB(255, 255, 255)
- Tokens_.TextSize = 15.000
- Tokens_.TextXAlignment = Enum.TextXAlignment.Left
- Tokens_.TextYAlignment = Enum.TextYAlignment.Top
- Numbers_.Name = "Numbers_"
- Numbers_.Parent = Source
- Numbers_.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Numbers_.BackgroundTransparency = 1.000
- Numbers_.Size = UDim2.new(1, 0, 1, 0)
- Numbers_.ZIndex = 4
- Numbers_.Font = Enum.Font.Code
- Numbers_.Text = ""
- Numbers_.TextColor3 = Color3.fromRGB(255, 204, 102)
- Numbers_.TextSize = 15.000
- Numbers_.TextXAlignment = Enum.TextXAlignment.Left
- Numbers_.TextYAlignment = Enum.TextYAlignment.Top
- Lines.Name = "Lines"
- Lines.Parent = EditorFrame
- Lines.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Lines.BackgroundTransparency = 1.000
- Lines.Size = UDim2.new(0, 30, 1, 0)
- Lines.ZIndex = 4
- Lines.Font = Enum.Font.Code
- Lines.Text = "1"
- Lines.TextColor3 = Color3.fromRGB(255, 255, 255)
- Lines.TextSize = 15.000
- Lines.TextYAlignment = Enum.TextYAlignment.Top
- UIStroke_3.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- UIStroke_3.Color = Color3.fromRGB(134, 134, 134)
- UIStroke_3.Thickness = 1.2999999523162842
- UIStroke_3.Parent = EditorFrame
- UICorner_2.Parent = EditorFrame
- Run.Name = "Run"
- Run.Parent = Frame_2
- Run.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
- Run.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Run.BorderSizePixel = 0
- Run.Position = UDim2.new(0.0222222228, 0, 0.869047642, 0)
- Run.Size = UDim2.new(0, 123, 0, 23)
- Run.AutoButtonColor = false
- Run.Font = Enum.Font.Unknown
- Run.Text = "Run"
- Run.TextColor3 = Color3.fromRGB(255, 255, 255)
- Run.TextSize = 15.000
- UIStroke_4.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- UIStroke_4.Color = Color3.fromRGB(134, 134, 134)
- UIStroke_4.Thickness = 1.2999999523162842
- UIStroke_4.Parent = Run
- UICorner_3.Parent = Run
- Clear.Name = "Clear"
- Clear.Parent = Frame_2
- Clear.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
- Clear.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Clear.BorderSizePixel = 0
- Clear.Position = UDim2.new(0.294949502, 0, 0.869047642, 0)
- Clear.Size = UDim2.new(0, 82, 0, 23)
- Clear.AutoButtonColor = false
- Clear.Font = Enum.Font.Unknown
- Clear.Text = "Clear"
- Clear.TextColor3 = Color3.fromRGB(255, 255, 255)
- Clear.TextSize = 15.000
- UIStroke_5.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- UIStroke_5.Color = Color3.fromRGB(134, 134, 134)
- UIStroke_5.Thickness = 1.2999999523162842
- UIStroke_5.Parent = Clear
- UICorner_4.Parent = Clear
- Auto.Name = "Auto"
- Auto.Parent = Frame_2
- Auto.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
- Auto.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Auto.BorderSizePixel = 0
- Auto.Position = UDim2.new(0.866666675, 0, 0.869047642, 0)
- Auto.Size = UDim2.new(0, 54, 0, 23)
- Auto.AutoButtonColor = false
- Auto.Font = Enum.Font.Unknown
- Auto.Text = "Auto"
- Auto.TextColor3 = Color3.fromRGB(255, 83, 83)
- Auto.TextSize = 15.000
- UIStroke_6.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- UIStroke_6.Color = Color3.fromRGB(134, 134, 134)
- UIStroke_6.Thickness = 1.2999999523162842
- UIStroke_6.Parent = Auto
- UICorner_5.Parent = Auto
- Amount.Name = "Amount"
- Amount.Parent = Frame_2
- Amount.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
- Amount.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Amount.BorderSizePixel = 0
- Amount.Position = UDim2.new(0.733333349, 0, 0.869047642, 0)
- Amount.Size = UDim2.new(0, 59, 0, 23)
- Amount.ClearTextOnFocus = false
- Amount.Font = Enum.Font.Unknown
- Amount.Text = "1"
- Amount.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount.TextSize = 18.000
- UIStroke_7.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- UIStroke_7.Color = Color3.fromRGB(134, 134, 134)
- UIStroke_7.Thickness = 1.2999999523162842
- UIStroke_7.Parent = Amount
- UICorner_6.Parent = Amount
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.BorderSizePixel = 0
- TextLabel.Size = UDim2.new(0, 494, 0, 32)
- TextLabel.Font = Enum.Font.Unknown
- TextLabel.Text = "INTERNAL-CODER"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 25.000
- -- Scripts:
- local function JNEOZH_fake_script() -- Frame.Dragify
- local script = Instance.new('LocalScript', Frame)
- local UserInputService = game:GetService("UserInputService")
- local gui = script.Parent
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- 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)
- end
- coroutine.wrap(JNEOZH_fake_script)()
- local function AXDJZNN_fake_script() -- Frame_2.Function
- local script = Instance.new('LocalScript', Frame_2)
- local lua_keywords = {"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while", "is_synapse_function","is_protosmasher_caller", "execute","foreach","foreachi","insert","syn","HttpGet","HttpPost","__index","__namecall","__add","__call","__tostring","__tonumber","__div"}
- local global_env = {"getrawmetatable", "game", "workspace", "script", "math", "string", "table", "print", "wait", "BrickColor", "Color3", "next", "pairs", "ipairs", "select", "unpack", "Instance", "Vector2", "Vector3", "CFrame", "Ray", "UDim2", "Enum", "assert", "error", "warn", "tick", "loadstring", "_G", "shared", "getfenv", "setfenv", "newproxy", "setmetatable", "getmetatable", "os", "debug", "pcall", "ypcall", "xpcall", "rawequal", "rawset", "rawget", "tonumber", "tostring", "type", "typeof", "_VERSION", "coroutine", "delay", "require", "spawn", "LoadLibrary", "settings", "stats", "time", "UserSettings", "version", "Axes", "ColorSequence", "Faces", "ColorSequenceKeypoint", "NumberRange", "NumberSequence", "NumberSequenceKeypoint", "gcinfo", "elapsedTime", "collectgarbage", "PhysicalProperties", "Rect", "Region3", "Region3int16", "UDim", "Vector2int16", "Vector3int16","run_secure_function","create_secure_function","hookfunc","hookfunction","newcclosure","replaceclosure","islclosure","getgc","gcinfo","rconsolewarn","rconsoleprint","rconsoleinfo","rconsoleinput","rconsoleinputasync","rconsoleclear","rconsoleerr",}
- local src = script.Parent.EditorFrame.Source
- local lin = script.Parent.EditorFrame.Lines
- local Highlight = function(string, keywords)
- local K = {}
- local S = string
- local Token =
- {
- ["="] = true,
- ["."] = true,
- [","] = true,
- ["("] = true,
- [")"] = true,
- ["["] = true,
- ["]"] = true,
- ["{"] = true,
- ["}"] = true,
- [":"] = true,
- ["*"] = true,
- ["/"] = true,
- ["+"] = true,
- ["-"] = true,
- ["%"] = true,
- [";"] = true,
- ["~"] = true
- }
- for i, v in pairs(keywords) do
- K[v] = true
- end
- S = S:gsub(".", function(c)
- if Token[c] ~= nil then
- return "\32"
- else
- return c
- end
- end)
- S = S:gsub("%S+", function(c)
- if K[c] ~= nil then
- return c
- else
- return (" "):rep(#c)
- end
- end)
- return S
- end
- local hTokens = function(string)
- local Token =
- {
- ["="] = true,
- ["."] = true,
- [","] = true,
- ["("] = true,
- [")"] = true,
- ["["] = true,
- ["]"] = true,
- ["{"] = true,
- ["}"] = true,
- [":"] = true,
- ["*"] = true,
- ["/"] = true,
- ["+"] = true,
- ["-"] = true,
- ["%"] = true,
- [";"] = true,
- ["~"] = true
- }
- local A = ""
- local B = [[]]
- string:gsub(".", function(c)
- if Token[c] ~= nil then
- A = A .. c
- elseif c == "\n" then
- A = A .. "\n"
- elseif c == "\t" then
- A = A .. "\t"
- else
- A = A .. "\32"
- end
- end)
- return A
- end
- local strings = function(string)
- local highlight = ""
- local quote = false
- string:gsub(".", function(c)
- if quote == false and c == "\"" then
- quote = true
- elseif quote == true and c == "\"" then
- quote = false
- end
- if quote == false and c == "\"" then
- highlight = highlight .. "\""
- elseif c == "\n" then
- highlight = highlight .. "\n"
- elseif c == "\t" then
- highlight = highlight .. "\t"
- elseif quote == true then
- highlight = highlight .. c
- elseif quote == false then
- highlight = highlight .. "\32"
- end
- end)
- return highlight
- end
- local comments = function(string)
- local ret = ""
- string:gsub("[^\r\n]+", function(c)
- local comm = false
- local i = 0
- c:gsub(".", function(n)
- i = i + 1
- if c:sub(i, i + 1) == "--" then
- comm = true
- end
- if comm == true then
- ret = ret .. n
- else
- ret = ret .. "\32"
- end
- end)
- ret = ret
- end)
- return ret
- end
- local numbers = function(string)
- local A = ""
- string:gsub(".", function(c)
- if tonumber(c) ~= nil then
- A = A .. c
- elseif c == "\n" then
- A = A .. "\n"
- elseif c == "\t" then
- A = A .. "\t"
- else
- A = A .. "\32"
- end
- end)
- return A
- end
- local highlight_source = function(type)
- if type == "Text" then
- src.Text = script.Parent.EditorFrame.Source.Text:gsub("\13", "")
- src.Text = script.Parent.EditorFrame.Source.Text:gsub("\t", " ")
- local s = src.Text
- src.Keywords_.Text = Highlight(s, lua_keywords)
- src.Globals_.Text = Highlight(s, global_env)
- src.RemoteHighlight_.Text = Highlight(s, {"FireServer", "fireServer", "InvokeServer", "invokeServer"})
- src.Tokens_.Text = hTokens(s)
- src.Numbers_.Text = numbers(s)
- src.Strings_.Text = strings(s)
- local lin = 1
- s:gsub("\n", function()
- lin = lin + 1
- end)
- script.Parent.EditorFrame.Lines.Text = ""
- for i = 1, lin do
- script.Parent.EditorFrame.Lines.Text = script.Parent.EditorFrame.Lines.Text .. i .. "\n"
- end
- end
- end
- highlight_source("Text")
- src.Changed:Connect(highlight_source)
- end
- coroutine.wrap(AXDJZNN_fake_script)()
- local function NQLCOI_fake_script() -- Frame_2.Executor
- local script = Instance.new('LocalScript', Frame_2)
- local run = script.Parent.Run
- local Clear = script.Parent.Clear
- local auto = script.Parent.Auto
- local amount = script.Parent.Amount
- local editor = script.Parent.EditorFrame.Source
- local Toggle = false
- local function Run()
- for i = 1, amount.Text do
- assert(loadstring(editor.Text))()
- Wait()
- end
- end
- local function clear()
- editor.Text=""
- end
- local function ToggleAuto()
- if Toggle == false then
- auto.TextColor3 = Color3.fromRGB(100,255,100)
- Toggle = true
- else
- auto.TextColor3 = Color3.fromRGB(255, 83, 83)
- Toggle = false
- end
- while Toggle == true do
- assert(loadstring(editor.Text))()
- wait()
- end
- end
- run.MouseButton1Down:Connect(function()
- Run()
- end)
- Clear.MouseButton1Down:Connect(function()
- clear()
- end)
- auto.MouseButton1Down:Connect(function()
- ToggleAuto()
- end)
- while true do
- run.Text = "Run ["..amount.Text.."]"
- wait()
- end
- end
- coroutine.wrap(NQLCOI_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement