Advertisement
Smartdumgood

Exe made by me

Jan 10th, 2025 (edited)
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. -- Custom UI Framework
  2. local UserInputService = game:GetService("UserInputService")
  3. local TweenService = game:GetService("TweenService")
  4. local CoreGui = game:GetService("CoreGui")
  5.  
  6. -- Create main UI elements
  7. local ScreenGui = Instance.new("ScreenGui")
  8. local MainFrame = Instance.new("Frame")
  9. local TopBar = Instance.new("Frame")
  10. local Title = Instance.new("TextLabel")
  11. local Container = Instance.new("Frame")
  12. local ScriptBox = Instance.new("TextBox")
  13. local ExecuteButton = Instance.new("TextButton")
  14. local ClearButton = Instance.new("TextButton")
  15. local UNCLabel = Instance.new("TextLabel")
  16.  
  17. -- UI Properties
  18. ScreenGui.Name = "PowerExecutor"
  19. ScreenGui.Parent = CoreGui
  20. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21.  
  22. MainFrame.Name = "MainFrame"
  23. MainFrame.Size = UDim2.new(0, 500, 0, 300)
  24. MainFrame.Position = UDim2.new(0.5, -250, 0.5, -150)
  25. MainFrame.BackgroundColor3 = Color3.fromRGB(30, 24, 45)
  26. MainFrame.BorderSizePixel = 0
  27. MainFrame.Parent = ScreenGui
  28.  
  29. TopBar.Name = "TopBar"
  30. TopBar.Size = UDim2.new(1, 0, 0, 30)
  31. TopBar.BackgroundColor3 = Color3.fromRGB(48, 37, 82)
  32. TopBar.BorderSizePixel = 0
  33. TopBar.Parent = MainFrame
  34.  
  35. Title.Name = "Title"
  36. Title.Size = UDim2.new(1, 0, 1, 0)
  37. Title.BackgroundTransparency = 1
  38. Title.Text = "💫 Power Executor V2"
  39. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  40. Title.TextSize = 16
  41. Title.Font = Enum.Font.GothamBold
  42. Title.Parent = TopBar
  43.  
  44. Container.Name = "Container"
  45. Container.Size = UDim2.new(1, -20, 1, -40)
  46. Container.Position = UDim2.new(0, 10, 0, 35)
  47. Container.BackgroundTransparency = 1
  48. Container.Parent = MainFrame
  49.  
  50. ScriptBox.Name = "ScriptBox"
  51. ScriptBox.Size = UDim2.new(1, 0, 0.8, -10)
  52. ScriptBox.BackgroundColor3 = Color3.fromRGB(38, 30, 64)
  53. ScriptBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  54. ScriptBox.PlaceholderText = "-- Enter your script here"
  55. ScriptBox.PlaceholderColor3 = Color3.fromRGB(147, 112, 219)
  56. ScriptBox.TextXAlignment = Enum.TextXAlignment.Left
  57. ScriptBox.TextYAlignment = Enum.TextYAlignment.Top
  58. ScriptBox.Font = Enum.Font.Code
  59. ScriptBox.TextSize = 14
  60. ScriptBox.MultiLine = true
  61. ScriptBox.ClearTextOnFocus = false
  62. ScriptBox.Parent = Container
  63.  
  64. ExecuteButton.Name = "ExecuteButton"
  65. ExecuteButton.Size = UDim2.new(0.48, 0, 0.15, 0)
  66. ExecuteButton.Position = UDim2.new(0, 0, 0.85, 0)
  67. ExecuteButton.BackgroundColor3 = Color3.fromRGB(147, 112, 219)
  68. ExecuteButton.Text = "▶️ Execute"
  69. ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. ExecuteButton.Font = Enum.Font.GothamBold
  71. ExecuteButton.TextSize = 14
  72. ExecuteButton.Parent = Container
  73.  
  74. ClearButton.Name = "ClearButton"
  75. ClearButton.Size = UDim2.new(0.48, 0, 0.15, 0)
  76. ClearButton.Position = UDim2.new(0.52, 0, 0.85, 0)
  77. ClearButton.BackgroundColor3 = Color3.fromRGB(147, 112, 219)
  78. ClearButton.Text = "🗑️ Clear"
  79. ClearButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  80. ClearButton.Font = Enum.Font.GothamBold
  81. ClearButton.TextSize = 14
  82. ClearButton.Parent = Container
  83.  
  84. -- Add functionality
  85. ExecuteButton.MouseButton1Click:Connect(function()
  86. loadstring(ScriptBox.Text)()
  87. end)
  88.  
  89. ClearButton.MouseButton1Click:Connect(function()
  90. ScriptBox.Text = ""
  91. end)
  92.  
  93. -- Make UI draggable
  94. local dragging
  95. local dragInput
  96. local dragStart
  97. local startPos
  98.  
  99. TopBar.InputBegan:Connect(function(input)
  100. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  101. dragging = true
  102. dragStart = input.Position
  103. startPos = MainFrame.Position
  104. end
  105. end)
  106.  
  107. TopBar.InputEnded:Connect(function(input)
  108. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  109. dragging = false
  110. end
  111. end)
  112.  
  113. UserInputService.InputChanged:Connect(function(input)
  114. if input.UserInputType == Enum.UserInputType.MouseMovement then
  115. dragInput = input
  116. end
  117. end)
  118.  
  119. game:GetService("RunService").RenderStepped:Connect(function()
  120. if dragging and dragInput then
  121. local delta = dragInput.Position - dragStart
  122. MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  123. end
  124. end)
  125.  
  126. -- Round corners
  127. local function addCorners(instance)
  128. local corner = Instance.new("UICorner")
  129. corner.CornerRadius = UDim.new(0, 6)
  130. corner.Parent = instance
  131. end
  132.  
  133. addCorners(MainFrame)
  134. addCorners(ScriptBox)
  135. addCorners(ExecuteButton)
  136. addCorners(ClearButton)
  137.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement