Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local Print = Instance.new("ScreenGui")
- local PrintBox = Instance.new("TextBox")
- local PrintBtn = Instance.new("TextButton")
- local Clear = Instance.new("TextButton")
- --Properties:
- Print.Name = "Print"
- Print.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Print.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- PrintBox.Name = "PrintBox"
- PrintBox.Parent = Print
- PrintBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- PrintBox.BorderColor3 = Color3.fromRGB(40, 40, 40)
- PrintBox.Position = UDim2.new(0.0194474459, 0, 0.928633332, 0)
- PrintBox.Size = UDim2.new(0, 299, 0, 37)
- PrintBox.Font = Enum.Font.Code
- PrintBox.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
- PrintBox.PlaceholderText = "Type a code to print it..."
- PrintBox.Text = ""
- PrintBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- PrintBox.TextScaled = true
- PrintBox.TextSize = 14.000
- PrintBox.TextWrapped = true
- PrintBtn.Name = "PrintBtn"
- PrintBtn.Parent = Print
- PrintBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- PrintBtn.BorderColor3 = Color3.fromRGB(40, 40, 40)
- PrintBtn.Position = UDim2.new(0.019261796, 0, 0.877729058, 0)
- PrintBtn.Size = UDim2.new(0, 173, 0, 39)
- PrintBtn.Font = Enum.Font.Code
- PrintBtn.Text = "Send Code"
- PrintBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- PrintBtn.TextSize = 30.000
- PrintBtn.TextWrapped = true
- Clear.Name = "Clear"
- Clear.Parent = Print
- Clear.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- Clear.BorderColor3 = Color3.fromRGB(40, 40, 40)
- Clear.Position = UDim2.new(0.162230536, 0, 0.877729058, 0)
- Clear.Size = UDim2.new(0, 116, 0, 39)
- Clear.Font = Enum.Font.Code
- Clear.Text = "Clear"
- Clear.TextColor3 = Color3.fromRGB(255, 255, 255)
- Clear.TextSize = 30.000
- Clear.TextWrapped = true
- -- Scripts:
- local function AWFE_fake_script() -- PrintBtn.LocalScript
- local script = Instance.new('LocalScript', PrintBtn)
- -- Today we teach how to make a print executor in lua.
- script.Parent.MouseButton1Click:Connect(function()
- wait(1) -- Give a second before executing.
- if (script.Parent.Parent.PrintBox.Text == "") then
- -- There is nothing to execute in the box --
- print("Output is empty, execution ignored.")
- else
- print(script.Parent.Parent.PrintBox.Text)
- end
- end)
- end
- coroutine.wrap(AWFE_fake_script)()
- local function QLVNZ_fake_script() -- Clear.LocalScript
- local script = Instance.new('LocalScript', Clear)
- -- Clear Script --
- script.Parent.MouseButton1Click:Connect(function()
- script.Parent.Parent.PrintBox.Text = ""
- end)
- end
- coroutine.wrap(QLVNZ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement