Advertisement
FreshGamer430

Aim

Feb 3rd, 2025
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.61 KB | Source Code | 0 0
  1. -- Variables
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4.  
  5. -- Create GUI
  6. local screenGui = Instance.new("ScreenGui")
  7. screenGui.Name = "AdminAimGUI"
  8. screenGui.Parent = game.CoreGui
  9.  
  10. -- Main Frame
  11. local mainFrame = Instance.new("Frame")
  12. mainFrame.Name = "MainFrame"
  13. mainFrame.Size = UDim2.new(0, 300, 0, 150)
  14. mainFrame.Position = UDim2.new(1, -320, 0.5, -75)
  15. mainFrame.BackgroundColor3 = Color3.fromRGB(255, 182, 193) -- Pink
  16. mainFrame.BorderSizePixel = 0
  17. mainFrame.Visible = true
  18. mainFrame.Active = true
  19. mainFrame.Draggable = true -- Make draggable
  20. mainFrame.Parent = screenGui
  21.  
  22. -- UI Corner (Rounded Edges)
  23. local uiCorner = Instance.new("UICorner")
  24. uiCorner.CornerRadius = UDim.new(0, 15)
  25. uiCorner.Parent = mainFrame
  26.  
  27. -- Title (Fixed Position)
  28. local titleFrame = Instance.new("Frame")
  29. titleFrame.Size = UDim2.new(1, 0, 0, 40) -- Title area size
  30. titleFrame.BackgroundTransparency = 1
  31. titleFrame.Parent = mainFrame
  32.  
  33. local title = Instance.new("TextLabel")
  34. title.Name = "Title"
  35. title.Text = "Mika's Aimbot 🐵"
  36. title.Font = Enum.Font.FredokaOne
  37. title.TextSize = 24
  38. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  39. title.BackgroundTransparency = 1
  40. title.Size = UDim2.new(1, -40, 1, 0) -- Adjust to make space for collapse button
  41. title.Position = UDim2.new(0, 0, 0, 0)
  42. title.Parent = titleFrame
  43.  
  44. -- Collapse Button (part of title)
  45. local collapse = Instance.new("TextButton")
  46. collapse.Name = "Collapse"
  47. collapse.Text = "-"
  48. collapse.Font = Enum.Font.FredokaOne
  49. collapse.TextSize = 20
  50. collapse.TextColor3 = Color3.fromRGB(255, 255, 255)
  51. collapse.BackgroundColor3 = Color3.fromRGB(255, 105, 180)
  52. collapse.Size = UDim2.new(0.2, 0, 1, 0) -- Size adjusted for proper placement
  53. collapse.Position = UDim2.new(1, -40, 0, 0) -- Positioned at the right of title
  54. collapse.Parent = titleFrame
  55.  
  56. local collapseUICorner = Instance.new("UICorner")
  57. collapseUICorner.CornerRadius = UDim.new(0, 5)
  58. collapseUICorner.Parent = collapse
  59.  
  60. -- Scrolling Frame
  61. local scrollingFrame = Instance.new("ScrollingFrame")
  62. scrollingFrame.Name = "ScrollingFrame"
  63. scrollingFrame.Size = UDim2.new(1, 0, 1, -40) -- Below the title
  64. scrollingFrame.Position = UDim2.new(0, 0, 0, 40)
  65. scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 400) -- Adjust to fit content
  66. scrollingFrame.ScrollBarThickness = 8
  67. scrollingFrame.BackgroundTransparency = 1
  68. scrollingFrame.Parent = mainFrame
  69.  
  70. -- "Made by Ata" Text
  71. local madeByAta = Instance.new("TextLabel")
  72. madeByAta.Name = "MadeByAta"
  73. madeByAta.Text = "Made by Ata 🗿"
  74. madeByAta.Font = Enum.Font.FredokaOne
  75. madeByAta.TextSize = 18
  76. madeByAta.TextColor3 = Color3.fromRGB(255, 255, 255)
  77. madeByAta.BackgroundTransparency = 1
  78. madeByAta.Size = UDim2.new(1, 0, 0, 30)
  79. madeByAta.Position = UDim2.new(0, 0, 0, 370) -- Positioned near the bottom
  80. madeByAta.Parent = scrollingFrame
  81.  
  82. -- Toggle (Aimbot activation button)
  83. local toggle = Instance.new("TextButton")
  84. toggle.Name = "Toggle"
  85. toggle.Text = "Toggle Aimbot"
  86. toggle.Font = Enum.Font.FredokaOne
  87. toggle.TextSize = 20
  88. toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  89. toggle.BackgroundColor3 = Color3.fromRGB(255, 105, 180) -- Bright Pink
  90. toggle.Size = UDim2.new(0.8, 0, 0, 40)
  91. toggle.Position = UDim2.new(0.1, 0, 0, 10)
  92. toggle.Parent = scrollingFrame
  93.  
  94. local toggleUICorner = Instance.new("UICorner")
  95. toggleUICorner.CornerRadius = UDim.new(0, 10)
  96. toggleUICorner.Parent = toggle
  97.  
  98. -- Pink Square for Collapse
  99. local collapseSquare = Instance.new("ImageButton")
  100. collapseSquare.Name = "CollapseSquare"
  101. collapseSquare.Size = UDim2.new(0, 50, 0, 50)
  102. collapseSquare.Position = UDim2.new(1, -60, 0.5, -25)
  103. collapseSquare.AnchorPoint = Vector2.new(1, 0.5)
  104. collapseSquare.BackgroundColor3 = Color3.fromRGB(255, 182, 193) -- Pink
  105. collapseSquare.Visible = false
  106. collapseSquare.Active = true
  107. collapseSquare.Draggable = true -- Make draggable
  108. collapseSquare.Parent = screenGui
  109.  
  110. local collapseSquareUICorner = Instance.new("UICorner")
  111. collapseSquareUICorner.CornerRadius = UDim.new(0, 5)
  112. collapseSquareUICorner.Parent = collapseSquare
  113.  
  114. -- Script Logic
  115. local aimbotActive = false
  116.  
  117. local function lockOnToPlayer()
  118.     local localPlayer = Players.LocalPlayer
  119.     if not localPlayer.Character or not localPlayer.Character:FindFirstChild("HumanoidRootPart") then return end
  120.  
  121.     local closestPlayer
  122.     local shortestDistance = math.huge
  123.     for _, player in ipairs(Players:GetPlayers()) do
  124.         if player ~= localPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  125.             local distance = (localPlayer.Character.HumanoidRootPart.Position - player.Character.HumanoidRootPart.Position).Magnitude
  126.             if distance < shortestDistance then
  127.                 shortestDistance = distance
  128.                 closestPlayer = player
  129.             end
  130.         end
  131.     end
  132.  
  133.     if closestPlayer and closestPlayer.Character then
  134.         local target = closestPlayer.Character:FindFirstChild("HumanoidRootPart")
  135.         if target then
  136.             localPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(localPlayer.Character.HumanoidRootPart.Position, target.Position)
  137.         end
  138.     end
  139. end
  140.  
  141. toggle.MouseButton1Click:Connect(function()
  142.     aimbotActive = not aimbotActive
  143.     toggle.Text = aimbotActive and "Aimbot: ON" or "Aimbot: OFF"
  144. end)
  145.  
  146. RunService.RenderStepped:Connect(function()
  147.     if aimbotActive then
  148.         lockOnToPlayer()
  149.     end
  150. end)
  151.  
  152. collapse.MouseButton1Click:Connect(function()
  153.     mainFrame.Visible = false
  154.     collapseSquare.Visible = true
  155. end)
  156.  
  157. collapseSquare.MouseButton1Click:Connect(function()
  158.     mainFrame.Visible = true
  159.     collapseSquare.Visible = false
  160. end)
  161.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement