Advertisement
DiscordPastebins

cool printer

Jun 7th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Print = Instance.new("ScreenGui")
  7. local PrintBox = Instance.new("TextBox")
  8. local PrintBtn = Instance.new("TextButton")
  9. local Clear = Instance.new("TextButton")
  10.  
  11. --Properties:
  12.  
  13. Print.Name = "Print"
  14. Print.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. Print.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. PrintBox.Name = "PrintBox"
  18. PrintBox.Parent = Print
  19. PrintBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  20. PrintBox.BorderColor3 = Color3.fromRGB(40, 40, 40)
  21. PrintBox.Position = UDim2.new(0.0194474459, 0, 0.928633332, 0)
  22. PrintBox.Size = UDim2.new(0, 299, 0, 37)
  23. PrintBox.Font = Enum.Font.Code
  24. PrintBox.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  25. PrintBox.PlaceholderText = "Type a code to print it..."
  26. PrintBox.Text = ""
  27. PrintBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  28. PrintBox.TextScaled = true
  29. PrintBox.TextSize = 14.000
  30. PrintBox.TextWrapped = true
  31.  
  32. PrintBtn.Name = "PrintBtn"
  33. PrintBtn.Parent = Print
  34. PrintBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  35. PrintBtn.BorderColor3 = Color3.fromRGB(40, 40, 40)
  36. PrintBtn.Position = UDim2.new(0.019261796, 0, 0.877729058, 0)
  37. PrintBtn.Size = UDim2.new(0, 173, 0, 39)
  38. PrintBtn.Font = Enum.Font.Code
  39. PrintBtn.Text = "Send Code"
  40. PrintBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. PrintBtn.TextSize = 30.000
  42. PrintBtn.TextWrapped = true
  43.  
  44. Clear.Name = "Clear"
  45. Clear.Parent = Print
  46. Clear.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  47. Clear.BorderColor3 = Color3.fromRGB(40, 40, 40)
  48. Clear.Position = UDim2.new(0.162230536, 0, 0.877729058, 0)
  49. Clear.Size = UDim2.new(0, 116, 0, 39)
  50. Clear.Font = Enum.Font.Code
  51. Clear.Text = "Clear"
  52. Clear.TextColor3 = Color3.fromRGB(255, 255, 255)
  53. Clear.TextSize = 30.000
  54. Clear.TextWrapped = true
  55.  
  56. -- Scripts:
  57.  
  58. local function AWFE_fake_script() -- PrintBtn.LocalScript
  59. local script = Instance.new('LocalScript', PrintBtn)
  60.  
  61. -- Today we teach how to make a print executor in lua.
  62. script.Parent.MouseButton1Click:Connect(function()
  63. wait(1) -- Give a second before executing.
  64. if (script.Parent.Parent.PrintBox.Text == "") then
  65. -- There is nothing to execute in the box --
  66. print("Output is empty, execution ignored.")
  67. else
  68. print(script.Parent.Parent.PrintBox.Text)
  69. end
  70. end)
  71. end
  72. coroutine.wrap(AWFE_fake_script)()
  73. local function QLVNZ_fake_script() -- Clear.LocalScript
  74. local script = Instance.new('LocalScript', Clear)
  75.  
  76. -- Clear Script --
  77. script.Parent.MouseButton1Click:Connect(function()
  78. script.Parent.Parent.PrintBox.Text = ""
  79. end)
  80. end
  81. coroutine.wrap(QLVNZ_fake_script)()
  82.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement