kob123678

KoAimbot (no teamcheck)

May 23rd, 2022 (edited)
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.43 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local HAXX2 = Instance.new("ScreenGui")
  7. local UI1 = Instance.new("Frame")
  8. local Container = Instance.new("Frame")
  9. local Padding = Instance.new("UIPadding")
  10. local UnderLine = Instance.new("Frame")
  11. local Toggle = Instance.new("TextButton")
  12. local Window = Instance.new("TextLabel")
  13. local BackGround = Instance.new("Frame")
  14. local TextLabel = Instance.new("TextLabel")
  15. local button = Instance.new("TextButton")
  16. local Esp = Instance.new("TextLabel")
  17. local Run = Instance.new("TextButton")
  18.  
  19. --Properties:
  20.  
  21. HAXX2.Name = "HAXX2"
  22. HAXX2.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  23.  
  24. UI1.Name = "UI1"
  25. UI1.Parent = HAXX2
  26. UI1.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  27. UI1.BorderSizePixel = 0
  28. UI1.Position = UDim2.new(0, 34, 0, 35)
  29. UI1.Size = UDim2.new(0, 330, 0, 32)
  30.  
  31. Container.Name = "Container"
  32. Container.Parent = UI1
  33. Container.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  34. Container.BorderSizePixel = 0
  35. Container.ClipsDescendants = true
  36. Container.Position = UDim2.new(0, 0, 1, 0)
  37. Container.Size = UDim2.new(0, 330, 0, 134)
  38.  
  39. Padding.Name = "Padding"
  40. Padding.Parent = Container
  41. Padding.PaddingLeft = UDim.new(0, 10)
  42.  
  43. UnderLine.Name = "UnderLine"
  44. UnderLine.Parent = UI1
  45. UnderLine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  46. UnderLine.BorderSizePixel = 0
  47. UnderLine.Position = UDim2.new(0, 0, 1, -1)
  48. UnderLine.Size = UDim2.new(1, 0, 0, 1)
  49.  
  50. Toggle.Name = "Toggle"
  51. Toggle.Parent = UI1
  52. Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. Toggle.BackgroundTransparency = 1.000
  54. Toggle.Position = UDim2.new(1, -25, 0, 0)
  55. Toggle.Size = UDim2.new(0, 25, 0.71875, 0)
  56. Toggle.Font = Enum.Font.SourceSans
  57. Toggle.Text = "-"
  58. Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  59. Toggle.TextSize = 50.000
  60.  
  61. Window.Name = "Window"
  62. Window.Parent = UI1
  63. Window.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  64. Window.BackgroundTransparency = 1.000
  65. Window.Position = UDim2.new(0, 0, 0.03125, 0)
  66. Window.Size = UDim2.new(1, 0, 0.966666639, 0)
  67. Window.Font = Enum.Font.SourceSans
  68. Window.Text = "KoAimbot Alpha"
  69. Window.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. Window.TextSize = 25.000
  71. Window.TextXAlignment = Enum.TextXAlignment.Left
  72.  
  73. BackGround.Name = "BackGround"
  74. BackGround.Parent = UI1
  75. BackGround.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  76. BackGround.BorderSizePixel = 0
  77. BackGround.ClipsDescendants = true
  78. BackGround.Position = UDim2.new(0, 0, 0.96875, 0)
  79. BackGround.Size = UDim2.new(0, 330, 0, 134)
  80.  
  81. TextLabel.Parent = BackGround
  82. TextLabel.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  83. TextLabel.BackgroundTransparency = 1.000
  84. TextLabel.BorderSizePixel = 0
  85. TextLabel.Position = UDim2.new(0.0212121215, 0, 0.0451492779, 0)
  86. TextLabel.Size = UDim2.new(0, 323, 0, 28)
  87. TextLabel.Font = Enum.Font.SourceSans
  88. TextLabel.Text = "Aimbot"
  89. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  90. TextLabel.TextSize = 18.000
  91. TextLabel.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  92. TextLabel.TextStrokeTransparency = 100.000
  93. TextLabel.TextWrapped = true
  94. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  95.  
  96. button.Name = "button"
  97. button.Parent = TextLabel
  98. button.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  99. button.BorderColor3 = Color3.fromRGB(25, 25, 25)
  100. button.BorderSizePixel = 2
  101. button.Position = UDim2.new(0, 290, 0, 3)
  102. button.Selectable = false
  103. button.Size = UDim2.new(0, 25, 0, 25)
  104. button.Font = Enum.Font.SourceSans
  105. button.Text = ""
  106. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  107. button.TextSize = 23.000
  108.  
  109. Esp.Name = "Esp"
  110. Esp.Parent = BackGround
  111. Esp.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  112. Esp.BackgroundTransparency = 1.000
  113. Esp.BorderSizePixel = 0
  114. Esp.Position = UDim2.new(0.0212121215, 0, 0.298880607, 0)
  115. Esp.Size = UDim2.new(0, 323, 0, 28)
  116. Esp.Font = Enum.Font.SourceSans
  117. Esp.Text = "Esp"
  118. Esp.TextColor3 = Color3.fromRGB(255, 255, 255)
  119. Esp.TextSize = 18.000
  120. Esp.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  121. Esp.TextStrokeTransparency = 100.000
  122. Esp.TextWrapped = true
  123. Esp.TextXAlignment = Enum.TextXAlignment.Left
  124.  
  125. Run.Name = "Run"
  126. Run.Parent = Esp
  127. Run.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  128. Run.BorderColor3 = Color3.fromRGB(25, 25, 25)
  129. Run.BorderSizePixel = 2
  130. Run.Position = UDim2.new(0, 266, 0, 3)
  131. Run.Selectable = false
  132. Run.Size = UDim2.new(0, 49, 0, 25)
  133. Run.Font = Enum.Font.SourceSans
  134. Run.Text = "Run"
  135. Run.TextColor3 = Color3.fromRGB(255, 255, 255)
  136. Run.TextSize = 23.000
  137.  
  138. -- Scripts:
  139.  
  140. local function MKCQ_fake_script() -- UnderLine.Rainbow Frame
  141. local script = Instance.new('LocalScript', UnderLine)
  142.  
  143. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  144.  
  145. counter = 0
  146.  
  147. while wait(0.05)do
  148. script.Parent.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1)
  149.  
  150. counter = counter + 0.01
  151. end
  152.  
  153. --Enjoy ;) dont change anything. I didnt script this so i dont know if you can change but its adviced not 2
  154. end
  155. coroutine.wrap(MKCQ_fake_script)()
  156. local function TXGHHP_fake_script() -- Toggle.LocalScript
  157. local script = Instance.new('LocalScript', Toggle)
  158.  
  159. local back = script.Parent.Parent.BackGround
  160. local con = script.Parent.Parent.Container
  161.  
  162. local window = {
  163. count = 0;
  164. toggles = {},
  165. closed = false;
  166. }
  167. script.Parent.MouseButton1Click:connect(function()
  168. window.closed = not window.closed
  169. script.Parent.Text = (window.closed and "+" or "-")
  170. if script.Parent.Text == "+" then
  171. back:TweenSize(UDim2.new(0, 330,0, 0), "Out", "Sine", 0.5)
  172. con:TweenSize(UDim2.new(0, 330,0, 0), "Out", "Sine", 0.5)
  173. wait(0.2) do
  174. con.Visible = false
  175. end
  176. else
  177. back:TweenSize(UDim2.new(0, 330,4, 0), "Out", "Sine", 0.5)
  178. con:TweenSize(UDim2.new(0, 330,4, 0), "Out", "Sine", 0.5)
  179. wait(0.1) do
  180. con.Visible = true
  181. end
  182. end
  183.  
  184. end)
  185.  
  186. end
  187. coroutine.wrap(TXGHHP_fake_script)()
  188. local function CIGCQ_fake_script() -- UI1.LocalScript
  189. local script = Instance.new('LocalScript', UI1)
  190.  
  191. local dragger = {};
  192. local resizer = {};
  193.  
  194. do
  195. local mouse = game:GetService("Players").LocalPlayer:GetMouse();
  196. local inputService = game:GetService('UserInputService');
  197. local heartbeat = game:GetService("RunService").Heartbeat;
  198. -- // credits to Ririchi / Inori for this cute drag function :)
  199. function dragger.new(frame)
  200. local s, event = pcall(function()
  201. return frame.MouseEnter
  202. end)
  203.  
  204. if s then
  205. frame.Active = true;
  206.  
  207. event:connect(function()
  208. local input = frame.InputBegan:connect(function(key)
  209. if key.UserInputType == Enum.UserInputType.MouseButton1 then
  210. local objectPosition = Vector2.new(mouse.X - frame.AbsolutePosition.X, mouse.Y - frame.AbsolutePosition.Y);
  211. while heartbeat:wait() and inputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) do
  212. frame:TweenPosition(UDim2.new(0, mouse.X - objectPosition.X + (frame.Size.X.Offset * frame.AnchorPoint.X), 0, mouse.Y - objectPosition.Y + (frame.Size.Y.Offset * frame.AnchorPoint.Y)), 'Out', 'Quad', 0.1, true);
  213. end
  214. end
  215. end)
  216.  
  217. local leave;
  218. leave = frame.MouseLeave:connect(function()
  219. input:disconnect();
  220. leave:disconnect();
  221. end)
  222. end)
  223. end
  224. end
  225.  
  226. function resizer.new(p, s)
  227. p:GetPropertyChangedSignal('AbsoluteSize'):connect(function()
  228. s.Size = UDim2.new(s.Size.X.Scale, s.Size.X.Offset, s.Size.Y.Scale, p.AbsoluteSize.Y);
  229. end)
  230. end
  231. end
  232. script.Parent.Active = true
  233. script.Parent.Draggable = true
  234. end
  235. coroutine.wrap(CIGCQ_fake_script)()
  236. local function VHJJ_fake_script() -- button.LocalScript
  237. local script = Instance.new('LocalScript', button)
  238.  
  239. _G.aimbot = false
  240. local camera = game.Workspace.CurrentCamera
  241. local localplayer = game:GetService("Players").LocalPlayer
  242.  
  243. script.Parent.MouseButton1Click:Connect(function()
  244. if _G.aimbot == false then
  245. _G.aimbot = true
  246. script.Parent.TextColor3 = Color3.fromRGB(0,170,0)
  247. script.Parent.Text = "✓"
  248. function closestplayer()
  249. local dist = math.huge -- math.huge means a really large number, 1M+.
  250. local target = nil --- nil means no value
  251. for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  252. if v ~= localplayer then
  253. if v.Character and v.Character:FindFirstChild("Head") and _G.aimbot and v.Character.Humanoid.Health > 0 then --- creating the checks
  254. local magnitude = (v.Character.Head.Position - localplayer.Character.Head.Position).magnitude
  255. if magnitude < dist then
  256. dist = magnitude
  257. target = v
  258. end
  259.  
  260. end
  261. end
  262. end
  263. return target
  264. end
  265.  
  266. else
  267. _G.aimbot = false
  268. script.Parent.TextColor3 = Color3.fromRGB(255,0,0)
  269. script.Parent.Text = ""
  270. end
  271. end)
  272.  
  273. local settings = {
  274. keybind = Enum.UserInputType.MouseButton2
  275. }
  276.  
  277. local UIS = game:GetService("UserInputService")
  278. local aiming = false --- this toggle will make it so we lock on to the person when we press our keybind
  279.  
  280. UIS.InputBegan:Connect(function(inp)
  281. if inp.UserInputType == settings.keybind then
  282. aiming = true
  283. end
  284. end)
  285.  
  286. UIS.InputEnded:Connect(function(inp)
  287. if inp.UserInputType == settings.keybind then ---- when we stop pressing the keybind it would unlock off the player
  288. aiming = false
  289. end
  290. end)
  291.  
  292. game:GetService("RunService").RenderStepped:Connect(function()
  293. if aiming then
  294. camera.CFrame = CFrame.new(camera.CFrame.Position,closestplayer().Character.Head.Position) -- locks into the HEAD
  295. end
  296. end)
  297. end
  298. coroutine.wrap(VHJJ_fake_script)()
  299.  
Add Comment
Please, Sign In to add comment