Advertisement
9_cVv

crappy_client_executor

Feb 21st, 2022
841
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.64 KB | None | 0 0
  1. --GuiToLua V3
  2.  
  3. --objects
  4. local ClientExecutor = Instance.new'ScreenGui'
  5.  
  6. local Frame = Instance.new'Frame'
  7. local UICorner = Instance.new'UICorner'
  8. local Box = Instance.new'TextBox'
  9. local UICorner__2 = Instance.new'UICorner'
  10. local Execute = Instance.new'TextButton'
  11. local UICorner__3 = Instance.new'UICorner'
  12. local Clear = Instance.new'TextButton'
  13. local UICorner__4 = Instance.new'UICorner'
  14. local LocalScript = Instance.new'LocalScript'
  15.  
  16. --properties
  17. ClientExecutor.Name = 'ClientExecutor'
  18. ClientExecutor.Parent = game:GetService'CoreGui';
  19. ClientExecutor.ResetOnSpawn = false
  20. ClientExecutor.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21.  
  22. Frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  23. Frame.BorderSizePixel = 0
  24. Frame.Parent = ClientExecutor
  25. Frame.Position = UDim2.new(0.22941645979881287, 0, 0.3317702114582062, 0)
  26. Frame.Size = UDim2.new(0, 430, 0, 253)
  27.  
  28. UICorner.Parent = Frame
  29.  
  30. Box.BackgroundColor3 = Color3.fromRGB(56, 56, 56)
  31. Box.BorderSizePixel = 0
  32. Box.ClearTextOnFocus = false
  33. Box.MultiLine = true
  34. Box.Name = 'Box'
  35. Box.Parent = Frame
  36. Box.Size = UDim2.new(0, 430, 0, 174)
  37. Box.Font = Enum.Font.Code
  38. Box.PlaceholderText = 'Script here.'
  39. Box.Text = ''
  40. Box.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. Box.TextSize = 17
  42. Box.TextXAlignment = Enum.TextXAlignment.Left
  43. Box.TextYAlignment = Enum.TextYAlignment.Top
  44.  
  45. UICorner__2.Parent = Box
  46.  
  47. Execute.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  48. Execute.Name = 'Execute'
  49. Execute.Parent = Frame
  50. Execute.Position = UDim2.new(0.01860465109348297, 0, 0.7430830001831055, 0)
  51. Execute.Size = UDim2.new(0, 200, 0, 50)
  52. Execute.Font = Enum.Font.Code
  53. Execute.Text = 'Execute'
  54. Execute.TextColor3 = Color3.fromRGB(255, 255, 255)
  55. Execute.TextSize = 32
  56.  
  57. UICorner__3.Parent = Execute
  58.  
  59. Clear.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  60. Clear.Name = 'Clear'
  61. Clear.Parent = Frame
  62. Clear.Position = UDim2.new(0.5139535069465637, 0, 0.7430830001831055, 0)
  63. Clear.Size = UDim2.new(0, 200, 0, 50)
  64. Clear.Font = Enum.Font.Code
  65. Clear.Text = 'Clear'
  66. Clear.TextColor3 = Color3.fromRGB(255, 255, 255)
  67. Clear.TextSize = 32
  68.  
  69. UICorner__4.Parent = Clear
  70.  
  71. LocalScript.Parent = Frame
  72. --scripts
  73. coroutine.wrap(function()
  74. local script = LocalScript
  75.  
  76. local Frame = script.Parent;
  77.    
  78.     local Box = Frame.Box;
  79.     local Execute = Frame.Execute;
  80.     local Clear = Frame.Clear;
  81.    
  82.     Execute.MouseButton1Click:Connect(function()
  83.         local Suc, Res = pcall(loadstring, Box.Text);
  84.         if Res then
  85.             if Suc then
  86.                 local Suc,Res = pcall(Res);
  87.                 if not Suc and Res then
  88.                     warn(Res);
  89.                 end;
  90.             else
  91.                 warn(Res);
  92.             end;
  93.         end;
  94.     end);
  95.     Clear.MouseButton1Click:Connect(function()
  96.         Box.Text = '';
  97.     end);
  98. end)()
  99.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement