Advertisement
timmie140

Helper

Jan 6th, 2025 (edited)
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.86 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local UserInputService = game:GetService("UserInputService")
  4. local RunService = game:GetService("RunService")
  5.  
  6. local player = Players.LocalPlayer
  7. local playerGui = player:WaitForChild("PlayerGui")
  8.  
  9. -- Check if the GUI is already loaded
  10. if playerGui:FindFirstChild("Helper") then
  11. playerGui.Helper:Destroy() -- Remove existing instance
  12. end
  13.  
  14. -- Create the main GUI
  15. local gui = Instance.new("ScreenGui", playerGui)
  16. gui.Name = "Helper"
  17.  
  18. -- Main frame
  19. local mainFrame = Instance.new("Frame", gui)
  20. mainFrame.Size = UDim2.new(0, 400, 0, 300)
  21. mainFrame.Position = UDim2.new(0.5, -200, 0.5, -150)
  22. mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) -- Dark background
  23. mainFrame.BorderSizePixel = 0
  24. mainFrame.Visible = true
  25.  
  26. -- UI Corner for rounded edges
  27. local uiCorner = Instance.new("UICorner", mainFrame)
  28. uiCorner.CornerRadius = UDim.new(0, 10)
  29.  
  30. -- Title
  31. local title = Instance.new("TextLabel", mainFrame)
  32. title.Size = UDim2.new(1, 0, 0, 50)
  33. title.Position = UDim2.new(0, 0, 0, 0)
  34. title.Text = "Helper"
  35. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  36. title.BackgroundTransparency = 1
  37. title.Font = Enum.Font.SourceSansBold
  38. title.TextSize = 24
  39.  
  40. -- Search bar
  41. local searchBar = Instance.new("TextBox", mainFrame)
  42. searchBar.Size = UDim2.new(0.9, 0, 0, 30)
  43. searchBar.Position = UDim2.new(0.05, 0, 0, 60)
  44. searchBar.PlaceholderText = "Search scripts..."
  45. searchBar.Text = ""
  46. searchBar.Font = Enum.Font.SourceSans
  47. searchBar.TextSize = 18
  48. searchBar.TextColor3 = Color3.fromRGB(255, 255, 255)
  49. searchBar.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  50. searchBar.BorderSizePixel = 0
  51. local searchBarCorner = Instance.new("UICorner", searchBar)
  52. searchBarCorner.CornerRadius = UDim.new(0, 5)
  53.  
  54. -- Script container
  55. local scriptContainer = Instance.new("ScrollingFrame", mainFrame)
  56. scriptContainer.Size = UDim2.new(0.9, 0, 0.65, 0)
  57. scriptContainer.Position = UDim2.new(0.05, 0, 0, 100)
  58. scriptContainer.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  59. scriptContainer.BorderSizePixel = 0
  60. scriptContainer.CanvasSize = UDim2.new(0, 0, 0, 0)
  61. scriptContainer.ScrollBarThickness = 8
  62. local containerCorner = Instance.new("UICorner", scriptContainer)
  63. containerCorner.CornerRadius = UDim.new(0, 5)
  64.  
  65. -- Minimize button
  66. local minimizeButton = Instance.new("TextButton", mainFrame)
  67. minimizeButton.Size = UDim2.new(0, 30, 0, 30)
  68. minimizeButton.Position = UDim2.new(1, -40, 0, 10)
  69. minimizeButton.Text = "-"
  70. minimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  71. minimizeButton.Font = Enum.Font.SourceSansBold
  72. minimizeButton.TextSize = 18
  73. minimizeButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  74. local minimizeCorner = Instance.new("UICorner", minimizeButton)
  75. minimizeCorner.CornerRadius = UDim.new(0, 5)
  76.  
  77. -- Minimized button
  78. local minimizedButton = Instance.new("TextButton", gui)
  79. minimizedButton.Size = UDim2.new(0, 50, 0, 30)
  80. minimizedButton.Position = UDim2.new(0.5, -25, 0.5, -15)
  81. minimizedButton.Text = "Helper"
  82. minimizedButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  83. minimizedButton.Font = Enum.Font.SourceSansBold
  84. minimizedButton.TextSize = 14
  85. minimizedButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  86. minimizedButton.Visible = false
  87. local minimizedCorner = Instance.new("UICorner", minimizedButton)
  88. minimizedCorner.CornerRadius = UDim.new(0, 5)
  89.  
  90. -- Dragging functionality
  91. local dragging = false
  92. local dragStart, startPos
  93. local dragInput
  94.  
  95. local function enableDragging(frame)
  96. frame.InputBegan:Connect(function(input)
  97. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  98. dragging = true
  99. dragStart = Vector2.new(input.Position.X, input.Position.Y)
  100. startPos = frame.Position
  101.  
  102. input.Changed:Connect(function()
  103. if input.UserInputState == Enum.UserInputState.End then
  104. dragging = false
  105. end
  106. end)
  107. end
  108. end)
  109.  
  110. frame.InputChanged:Connect(function(input)
  111. if input.UserInputType == Enum.UserInputType.MouseMovement then
  112. dragInput = input
  113. end
  114. end)
  115.  
  116. RunService.RenderStepped:Connect(function()
  117. if dragging and dragInput then
  118. local mouseLocation = UserInputService:GetMouseLocation()
  119. local delta = mouseLocation - dragStart
  120. frame.Position = UDim2.new(
  121. startPos.X.Scale,
  122. startPos.X.Offset + delta.X,
  123. startPos.Y.Scale,
  124. startPos.Y.Offset + delta.Y
  125. )
  126. end
  127. end)
  128. end
  129.  
  130. -- Enable dragging for both main and minimized buttons
  131. enableDragging(mainFrame)
  132. enableDragging(minimizedButton)
  133.  
  134. -- Minimize behavior
  135. minimizeButton.MouseButton1Click:Connect(function()
  136. mainFrame.Visible = false
  137. minimizedButton.Visible = true
  138. end)
  139.  
  140. minimizedButton.MouseButton1Click:Connect(function()
  141. mainFrame.Visible = true
  142. minimizedButton.Visible = false
  143. end)
  144.  
  145. -- Toggle GUI with hotkey (default: F)
  146. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  147. if not gameProcessed and input.KeyCode == Enum.KeyCode.F then
  148. gui.Enabled = not gui.Enabled
  149. end
  150. end)
  151.  
  152. -- Script data
  153. local scripts = {
  154. {name = "Place ID", url = "https://pastebin.com/raw/sc7V2A06"},
  155. {name = "Standing Location", url = "https://pastebin.com/raw/qc6dJZmA"},
  156. {name = "Infinite Yield", url = "https://pastebin.com/raw/mEiFuw9c"},
  157. }
  158.  
  159. -- Add scripts to the container
  160. local function updateScripts(filter)
  161. scriptContainer:ClearAllChildren()
  162. local yOffset = 0
  163.  
  164. for _, scriptData in ipairs(scripts) do
  165. if not filter or scriptData.name:lower():find(filter:lower()) then
  166. local scriptButton = Instance.new("TextButton", scriptContainer)
  167. scriptButton.Size = UDim2.new(1, -10, 0, 40)
  168. scriptButton.Position = UDim2.new(0, 5, 0, yOffset)
  169. scriptButton.Text = scriptData.name
  170. scriptButton.Font = Enum.Font.SourceSansBold
  171. scriptButton.TextSize = 18
  172. scriptButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  173. scriptButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  174. scriptButton.BorderSizePixel = 0
  175. local buttonCorner = Instance.new("UICorner", scriptButton)
  176. buttonCorner.CornerRadius = UDim.new(0, 5)
  177.  
  178. -- Execute script on click
  179. scriptButton.MouseButton1Click:Connect(function()
  180. local http = game:GetService("HttpService")
  181. local response = http:GetAsync(scriptData.url)
  182. loadstring(response)()
  183. end)
  184.  
  185. yOffset = yOffset + 45
  186. end
  187. end
  188.  
  189. scriptContainer.CanvasSize = UDim2.new(0, 0, 0, yOffset)
  190. end
  191.  
  192. -- Search bar listener
  193. searchBar:GetPropertyChangedSignal("Text"):Connect(function()
  194. updateScripts(searchBar.Text)
  195. end)
  196.  
  197. -- Initial update
  198. updateScripts()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement