Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local e = Instance.new("ScreenGui")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local TextLabel = Instance.new("TextLabel")
- local line = Instance.new("Frame")
- local TextButton = Instance.new("TextButton")
- local TextButton_2 = Instance.new("TextButton")
- local TextButton_3 = Instance.new("TextButton")
- local ScriptViewer = Instance.new("Frame")
- local ScrollingFrame_2 = Instance.new("ScrollingFrame")
- local TextBox = Instance.new("TextBox")
- local TextButton_4 = Instance.new("TextButton")
- --Properties:
- e.Name = "e"
- e.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- e.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScrollingFrame.Parent = e
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
- ScrollingFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Position = UDim2.new(0.826405883, 0, 0, 0)
- ScrollingFrame.Size = UDim2.new(0, 284, 0, 664)
- TextLabel.Parent = e
- TextLabel.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
- TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.202933982, 0, 0.106927708, 0)
- TextLabel.Size = UDim2.new(0, 543, 0, 20)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = " Script Viewer"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 14.000
- TextLabel.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel.TextYAlignment = Enum.TextYAlignment.Top
- line.Name = "line"
- line.Parent = TextLabel
- line.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
- line.BorderColor3 = Color3.fromRGB(0, 0, 0)
- line.BorderSizePixel = 0
- line.Position = UDim2.new(0, 0, 0.949999988, 0)
- line.Size = UDim2.new(0, 543, 0, 4)
- TextButton.Parent = line
- TextButton.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
- TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.BorderSizePixel = 0
- TextButton.Size = UDim2.new(0, 196, 0, 24)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "clipboard"
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextSize = 14.000
- TextButton_2.Parent = line
- TextButton_2.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
- TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_2.BorderSizePixel = 0
- TextButton_2.Position = UDim2.new(0.360957652, 0, 0, 0)
- TextButton_2.Size = UDim2.new(0, 196, 0, 24)
- TextButton_2.Font = Enum.Font.SourceSans
- TextButton_2.Text = "Copy Path"
- TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton_2.TextSize = 14.000
- TextButton_3.Parent = line
- TextButton_3.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
- TextButton_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_3.BorderSizePixel = 0
- TextButton_3.Position = UDim2.new(0.721915305, 0, 0.25, 0)
- TextButton_3.Size = UDim2.new(0, 151, 0, 24)
- TextButton_3.Font = Enum.Font.SourceSans
- TextButton_3.Text = "Clear"
- TextButton_3.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton_3.TextSize = 14.000
- ScriptViewer.Name = "ScriptViewer"
- ScriptViewer.Parent = TextLabel
- ScriptViewer.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
- ScriptViewer.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ScriptViewer.BorderSizePixel = 0
- ScriptViewer.Position = UDim2.new(0, 0, 2.1500001, 0)
- ScriptViewer.Size = UDim2.new(0, 543, 0, 322)
- ScrollingFrame_2.Parent = ScriptViewer
- ScrollingFrame_2.Active = true
- ScrollingFrame_2.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
- ScrollingFrame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ScrollingFrame_2.BorderSizePixel = 0
- ScrollingFrame_2.Size = UDim2.new(0, 543, 0, 342)
- TextBox.Parent = ScrollingFrame_2
- TextBox.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
- TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0.023941068, 0, 0, 0)
- TextBox.Size = UDim2.new(0, 530, 0, 542)
- TextBox.ClearTextOnFocus = false
- TextBox.Font = Enum.Font.SourceSans
- TextBox.MultiLine = true
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.TextSize = 14.000
- TextBox.TextXAlignment = Enum.TextXAlignment.Left
- TextBox.TextYAlignment = Enum.TextYAlignment.Top
- TextButton_4.Parent = e
- TextButton_4.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
- TextButton_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_4.BorderSizePixel = 0
- TextButton_4.Position = UDim2.new(0.397921771, 0, 0, 0)
- TextButton_4.Size = UDim2.new(0, 48, 0, 31)
- TextButton_4.Font = Enum.Font.SourceSans
- TextButton_4.Text = "Viewer"
- TextButton_4.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton_4.TextSize = 14.000
- -- Scripts:
- local function RNJRUS_fake_script() -- ScrollingFrame.LocalScript
- local script = Instance.new('LocalScript', ScrollingFrame)
- local textbox = script.Parent.Parent.TextLabel.ScriptViewer.ScrollingFrame.TextBox
- local buttonHeight = 30
- local spacing = 5
- local currentY = 0
- for i, v in pairs(game:GetDescendants()) do
- if v:IsA("ModuleScript") or v:IsA("LocalScript") then
- local textButton = Instance.new("TextButton")
- textButton.Name = v.Name
- textButton.Size = UDim2.new(1, -10, 0, buttonHeight)
- textButton.Position = UDim2.new(0, 5, 0, currentY)
- textButton.Text = v.Name
- textButton.TextColor3 = Color3.new(1, 1, 1)
- textButton.BackgroundColor3 = Color3.new(0, 0, 0)
- textButton.Parent = script.Parent
- textButton.Name = v.Name
- textButton.MouseButton1Click:Connect(function()
- local s, err = pcall(function()
- textbox.Text = getscriptbytecode(v)
- end)
- if not s then
- textbox.Text = "-- failed to get LocalScript or ModuleScript bytecode in Roblox Studio."
- end
- end)
- currentY = currentY + buttonHeight + spacing
- end
- end
- end
- coroutine.wrap(RNJRUS_fake_script)()
- local function MIJQUE_fake_script() -- TextButton.LocalScript
- local script = Instance.new('LocalScript', TextButton)
- local textbox = script.Parent.Parent.Parent.ScriptViewer.ScrollingFrame.TextBox
- local function c()
- setclipboard(textbox.Text)
- end
- b = script.Parent
- b.MouseButton1Click:Connect(c)
- end
- coroutine.wrap(MIJQUE_fake_script)()
- local function RYPGKFA_fake_script() -- TextButton_3.LocalScript
- local script = Instance.new('LocalScript', TextButton_3)
- local textbox = script.Parent.Parent.Parent.ScriptViewer.ScrollingFrame.TextBox
- script.Parent.MouseButton1Click:Connect(function()
- textbox.Text = ""
- end)
- end
- coroutine.wrap(RYPGKFA_fake_script)()
- local function WHDOXI_fake_script() -- TextBox.LocalScript
- local script = Instance.new('LocalScript', TextBox)
- local keywords = {
- foo = "255,0,0";
- bar = "0,255,0";
- --keyword = rgb color;
- }
- function insertHighlights(txt) --txt is the text you want to highlight
- txt = " " .. txt .. " " --add some padding because my string pattern smells
- for i,v in next, keywords do --loop through keywords
- txt = txt:gsub("%A"..i.."%A",function(x) --replace keyword with result of function
- return x:gsub(i,function(y) --remove %A and %A used to see if its a freestanding word (ig. foob wouldnt highlight)
- return "<font color=\"rgb("..v..")\">"..y.."</font>" --richtext junk
- end)
- end)
- end
- return txt:sub(2,#txt-1) --remove padding added line #1 of function
- end
- print(insertHighlights("a foo eats a bar"))
- end
- coroutine.wrap(WHDOXI_fake_script)()
- local function CRSL_fake_script() -- TextLabel.LocalScript
- local script = Instance.new('LocalScript', TextLabel)
- 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(CRSL_fake_script)()
- local function WAQDT_fake_script() -- TextButton_4.LocalScript
- local script = Instance.new('LocalScript', TextButton_4)
- script.Parent.MouseButton1Click:Connect(function()
- local FRAME = script.Parent.Parent.TextLabel
- FRAME.Visible = not FRAME.Visible
- end)
- end
- coroutine.wrap(WAQDT_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement