ZammyHamac

Gemini hub

Oct 5th, 2026
3
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.54 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local Workspace = game:GetService("Workspace")
  4. local RunService = game:GetService("RunService")
  5. local UserInputService = game:GetService("UserInputService")
  6. local CoreGui = game:GetService("CoreGui")
  7.  
  8. local LocalPlayer = Players.LocalPlayer
  9. local Camera = Workspace.CurrentCamera
  10.  
  11. -- Configuration Variables
  12. local Config = {
  13. ESPEnabled = false,
  14. AimbotEnabled = false,
  15. TargetPart = "Head",
  16. TargetMode = "Nearest"
  17. }
  18.  
  19. -- Remove existing GeminiHub if already running
  20. if CoreGui:FindFirstChild("GeminiHub") then
  21. CoreGui.GeminiHub:Destroy()
  22. end
  23.  
  24. -- ScreenGui Setup
  25. local ScreenGui = Instance.new("ScreenGui")
  26. ScreenGui.Name = "GeminiHub"
  27. ScreenGui.Parent = CoreGui
  28. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  29.  
  30. -- 1. FLOATING ICON (Toggle Button)
  31. local ToggleButton = Instance.new("TextButton")
  32. ToggleButton.Name = "ToggleButton"
  33. ToggleButton.Size = UDim2.new(0, 50, 0, 50)
  34. ToggleButton.Position = UDim2.new(0, 20, 0, 200)
  35. ToggleButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  36. ToggleButton.TextColor3 = Color3.fromRGB(0, 255, 255)
  37. ToggleButton.Text = "Gemini"
  38. ToggleButton.TextSize = 12
  39. ToggleButton.Font = Enum.Font.SourceSansBold
  40. ToggleButton.Parent = ScreenGui
  41.  
  42. local ToggleCorner = Instance.new("UICorner")
  43. ToggleCorner.CornerRadius = UDim.new(1, 0)
  44. ToggleCorner.Parent = ToggleButton
  45.  
  46. -- 2. MAIN WINDOW
  47. local MainFrame = Instance.new("Frame")
  48. MainFrame.Name = "MainFrame"
  49. MainFrame.Size = UDim2.new(0, 320, 0, 380)
  50. MainFrame.Position = UDim2.new(0.5, -160, 0.5, -190)
  51. MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25)
  52. MainFrame.BorderSizePixel = 0
  53. MainFrame.Visible = false
  54. MainFrame.Parent = ScreenGui
  55.  
  56. local MainCorner = Instance.new("UICorner")
  57. MainCorner.CornerRadius = UDim.new(0, 8)
  58. MainCorner.Parent = MainFrame
  59.  
  60. -- Title Bar
  61. local TitleBar = Instance.new("TextLabel")
  62. TitleBar.Size = UDim2.new(1, 0, 0, 40)
  63. TitleBar.BackgroundColor3 = Color3.fromRGB(35, 35, 45)
  64. TitleBar.TextColor3 = Color3.fromRGB(255, 255, 255)
  65. TitleBar.Text = " Gemini Hub"
  66. TitleBar.TextXAlignment = Enum.TextXAlignment.Left
  67. TitleBar.TextSize = 16
  68. TitleBar.Font = Enum.Font.SourceSansBold
  69. TitleBar.Parent = MainFrame
  70.  
  71. local TitleCorner = Instance.new("UICorner")
  72. TitleCorner.CornerRadius = UDim.new(0, 8)
  73. TitleCorner.Parent = TitleBar
  74.  
  75. -- Container Layout
  76. local UIListLayout = Instance.new("UIListLayout")
  77. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  78. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  79. UIListLayout.Padding = UDim.new(0, 10)
  80. UIListLayout.Parent = MainFrame
  81.  
  82. -- Padding Spacer
  83. local Spacer = Instance.new("Frame")
  84. Spacer.Size = UDim2.new(1, 0, 0, 45)
  85. Spacer.BackgroundTransparency = 1
  86. Spacer.LayoutOrder = 1
  87. Spacer.Parent = MainFrame
  88.  
  89. -- Helper Function: Create Toggles/Buttons
  90. local function createButton(name, text, order, callback)
  91. local btn = Instance.new("TextButton")
  92. btn.Name = name
  93. btn.Size = UDim2.new(0, 280, 0, 40)
  94. btn.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
  95. btn.TextColor3 = Color3.fromRGB(255, 255, 255)
  96. btn.Text = text .. ": OFF"
  97. btn.TextSize = 14
  98. btn.Font = Enum.Font.SourceSansBold
  99. btn.LayoutOrder = order
  100. btn.Parent = MainFrame
  101.  
  102. local corner = Instance.new("UICorner")
  103. corner.CornerRadius = UDim.new(0, 6)
  104. corner.Parent = btn
  105.  
  106. local state = false
  107. btn.MouseButton1Click:Connect(function()
  108. state = not state
  109. btn.Text = text .. (state and ": ON" or ": OFF")
  110. btn.BackgroundColor3 = state and Color3.fromRGB(0, 120, 215) or Color3.fromRGB(40, 40, 50)
  111. callback(state)
  112. end)
  113. end
  114.  
  115. -- Helper Function: Create Dropdowns
  116. local function createDropdown(name, title, options, defaultIndex, order, callback)
  117. local container = Instance.new("Frame")
  118. container.Name = name
  119. container.Size = UDim2.new(0, 280, 0, 40)
  120. container.BackgroundTransparency = 1
  121. container.LayoutOrder = order
  122. container.Parent = MainFrame
  123.  
  124. local label = Instance.new("TextLabel")
  125. label.Size = UDim2.new(0.4, 0, 1, 0)
  126. label.BackgroundTransparency = 1
  127. label.Text = title
  128. label.TextColor3 = Color3.fromRGB(200, 200, 200)
  129. label.TextSize = 13
  130. label.Font = Enum.Font.SourceSans
  131. label.TextXAlignment = Enum.TextXAlignment.Left
  132. label.Parent = container
  133.  
  134. local btn = Instance.new("TextButton")
  135. btn.Size = UDim2.new(0.6, 0, 1, 0)
  136. btn.Position = UDim2.new(0.4, 0, 0, 0)
  137. btn.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  138. btn.TextColor3 = Color3.fromRGB(255, 255, 255)
  139. local currentIndex = defaultIndex
  140. btn.Text = options[currentIndex]
  141. btn.TextSize = 13
  142. btn.Font = Enum.Font.SourceSansBold
  143. btn.Parent = container
  144.  
  145. local corner = Instance.new("UICorner")
  146. corner.CornerRadius = UDim.new(0, 6)
  147. corner.Parent = btn
  148.  
  149. btn.MouseButton1Click:Connect(function()
  150. currentIndex = currentIndex + 1
  151. if currentIndex > #options then currentIndex = 1 end
  152. btn.Text = options[currentIndex]
  153. callback(options[currentIndex])
  154. end)
  155. end
  156.  
  157. -- UI Controls Creation
  158. createButton("ESPButton", "ESP", 2, function(state)
  159. Config.ESPEnabled = state
  160. end)
  161.  
  162. createButton("AimbotButton", "Aimbot", 3, function(state)
  163. Config.AimbotEnabled = state
  164. end)
  165.  
  166. createDropdown("BodyPartDropdown", "Target Part:", {"Head", "HumanoidRootPart", "UpperTorso"}, 1, 4, function(val)
  167. Config.TargetPart = val
  168. end)
  169.  
  170. createDropdown("ModeDropdown", "Aimbot Mode:", {"Nearest", "Farthest", "Lowest HP"}, 1, 5, function(val)
  171. Config.TargetMode = val
  172. end)
  173.  
  174. -- UI Toggle Visibility Function
  175. ToggleButton.MouseButton1Click:Connect(function()
  176. MainFrame.Visible = not MainFrame.Visible
  177. end)
  178.  
  179. -- Make Window Draggable
  180. local dragging, dragInput, dragStart, startPos
  181. TitleBar.InputBegan:Connect(function(input)
  182. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  183. dragging = true
  184. dragStart = input.Position
  185. startPos = MainFrame.Position
  186. input.Changed:Connect(function()
  187. if input.UserInputState == Enum.UserInputState.End then
  188. dragging = false
  189. end
  190. end)
  191. end
  192. end)
  193.  
  194. UserInputService.InputChanged:Connect(function(input)
  195. if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  196. local delta = input.Position - dragStart
  197. MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  198. end
  199. end)
  200.  
  201. -- 3. ESP SYSTEM
  202. RunService.RenderStepped:Connect(function()
  203. for _, player in ipairs(Players:GetPlayers()) do
  204. if player ~= LocalPlayer and player.Character then
  205. local char = player.Character
  206. local highlight = char:FindFirstChild("GeminiESP")
  207.  
  208. if Config.ESPEnabled then
  209. if not highlight then
  210. highlight = Instance.new("Highlight")
  211. highlight.Name = "GeminiESP"
  212. highlight.Adornee = char
  213. highlight.FillColor = Color3.fromRGB(255, 0, 0)
  214. highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  215. highlight.FillTransparency = 0.5
  216. highlight.Parent = char
  217. end
  218. else
  219. if highlight then
  220. highlight:Destroy()
  221. end
  222. end
  223. end
  224. end
  225. end)
  226.  
  227. -- 4. ADVANCED AIMBOT LOGIC
  228. local function getBestTarget()
  229. local bestTarget = nil
  230. local bestValue = nil
  231. local localChar = LocalPlayer.Character
  232. local localHrp = localChar and localChar:FindFirstChild("HumanoidRootPart")
  233.  
  234. if not localHrp then return nil end
  235.  
  236. for _, player in ipairs(Players:GetPlayers()) do
  237. if player ~= LocalPlayer and player.Character then
  238. local enemyChar = player.Character
  239. local humanoid = enemyChar:FindFirstChildOfClass("Humanoid")
  240. local targetPart = enemyChar:FindFirstChild(Config.TargetPart) or enemyChar:FindFirstChild("HumanoidRootPart")
  241.  
  242. if humanoid and humanoid.Health > 0 and targetPart then
  243. local distance = (targetPart.Position - localHrp.Position).Magnitude
  244.  
  245. if Config.TargetMode == "Nearest" then
  246. if not bestValue or distance < bestValue then
  247. bestValue = distance
  248. bestTarget = targetPart
  249. end
  250. elseif Config.TargetMode == "Farthest" then
  251. if not bestValue or distance > bestValue then
  252. bestValue = distance
  253. bestTarget = targetPart
  254. end
  255. elseif Config.TargetMode == "Lowest HP" then
  256. if not bestValue or humanoid.Health < bestValue then
  257. bestValue = humanoid.Health
  258. bestTarget = targetPart
  259. end
  260. end
  261. end
  262. end
  263. end
  264.  
  265. return bestTarget
  266. end
  267.  
  268. RunService.RenderStepped:Connect(function()
  269. if Config.AimbotEnabled then
  270. local targetPart = getBestTarget()
  271. if targetPart then
  272. Camera.CFrame = CFrame.new(Camera.CFrame.Position, targetPart.Position)
  273. end
  274. end
  275. end)
Advertisement
Add Comment
Please, Sign In to add comment