Advertisement
EEARGH
Apr 2nd, 2023
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait (0) local Camera = workspace.CurrentCamera
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local UserInputService = game:GetService("UserInputService")
  5. local TweenService = game:GetService("TweenService")
  6. local LocalPlayer = Players.LocalPlayer
  7. local Holding = false
  8.  
  9. _G.AimbotEnabled = true
  10. _G.TeamCheck = true -- If set to true then the script would only lock your aim at enemy team members.
  11. _G.AimPart = "Head" -- Where the aimbot script would lock at.
  12. _G.Sensitivity = 0 -- How many seconds it takes for the aimbot script to officially lock onto the target's aimpart.
  13.  
  14. local function GetClosestPlayer()
  15. local MaximumDistance = math.huge
  16. local Target = nil
  17.  
  18. coroutine.wrap(function()
  19. wait(20); MaximumDistance = math.huge -- Reset the MaximumDistance so that the Aimbot doesn't remember it as a very small variable and stop capturing players...
  20. end)()
  21.  
  22. for _, v in next, Players:GetPlayers() do
  23. if v.Name ~= LocalPlayer.Name then
  24. if _G.TeamCheck == true then
  25. if v.Team ~= LocalPlayer.Team then
  26. if v.Character ~= nil then
  27. if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
  28. if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
  29. local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
  30. local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
  31.  
  32. if VectorDistance < MaximumDistance then
  33. Target = v
  34. MaximumDistance = VectorDistance
  35. end
  36. end
  37. end
  38. end
  39. end
  40. else
  41. if v.Character ~= nil then
  42. if v.Character:FindFirstChild("HumanoidRootPart") ~= nil then
  43. if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Humanoid").Health ~= 0 then
  44. local ScreenPoint = Camera:WorldToScreenPoint(v.Character:WaitForChild("HumanoidRootPart", math.huge).Position)
  45. local VectorDistance = (Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y) - Vector2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
  46.  
  47. if VectorDistance < MaximumDistance then
  48. Target = v
  49. MaximumDistance = VectorDistance
  50. end
  51. end
  52. end
  53. end
  54. end
  55. end
  56. end
  57.  
  58. return Target
  59. end
  60.  
  61. UserInputService.InputBegan:Connect(function(Input)
  62. if Input.UserInputType == Enum.UserInputType.MouseButton2 then
  63. Holding = true
  64. end
  65. end)
  66.  
  67. UserInputService.InputEnded:Connect(function(Input)
  68. if Input.UserInputType == Enum.UserInputType.MouseButton2 then
  69. Holding = false
  70. end
  71. end)
  72.  
  73. RunService.RenderStepped:Connect(function()
  74. if Holding == true and _G.AimbotEnabled == true then
  75. TweenService:Create(Camera, TweenInfo.new(_G.Sensitivity, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame = CFrame.new(Camera.CFrame.Position, GetClosestPlayer().Character[_G.AimPart].Position)}):Play()
  76. end
  77. end)
  78. local dwEntities = game:GetService("Players")
  79. local dwLocalPlayer = dwEntities.LocalPlayer
  80. local dwRunService = game:GetService("RunService")
  81.  
  82. local settings_tbl = {
  83. ESP_Enabled = true,
  84. ESP_TeamCheck = false,
  85. Chams = true,
  86. Chams_Color = Color3.fromRGB(255,0,0),
  87. Chams_Transparency = 0.1,
  88. Chams_Glow_Color = Color3.fromRGB(255,0,0)
  89. }
  90.  
  91. function destroy_chams(char)
  92.  
  93. for k,v in next, char:GetChildren() do
  94.  
  95. if v:IsA("BasePart") and v.Transparency ~= 1 then
  96.  
  97. if v:FindFirstChild("Glow") and
  98. v:FindFirstChild("Chams") then
  99.  
  100. v.Glow:Destroy()
  101. v.Chams:Destroy()
  102.  
  103. end
  104.  
  105. end
  106.  
  107. end
  108.  
  109. end
  110.  
  111. dwRunService.Heartbeat:Connect(function()
  112.  
  113. if settings_tbl.ESP_Enabled then
  114.  
  115. for k,v in next, dwEntities:GetPlayers() do
  116.  
  117. if v ~= dwLocalPlayer then
  118.  
  119. if v.Character and
  120. v.Character:FindFirstChild("HumanoidRootPart") and
  121. v.Character:FindFirstChild("Humanoid") and
  122. v.Character:FindFirstChild("Humanoid").Health ~= 0 then
  123.  
  124. if settings_tbl.ESP_TeamCheck == false then
  125.  
  126. local char = v.Character
  127.  
  128. for k,b in next, char:GetChildren() do
  129.  
  130. if b:IsA("BasePart") and
  131. b.Transparency ~= 1 then
  132.  
  133. if settings_tbl.Chams then
  134.  
  135. if not b:FindFirstChild("Glow") and
  136. not b:FindFirstChild("Chams") then
  137.  
  138. local chams_box = Instance.new("BoxHandleAdornment", b)
  139. chams_box.Name = "Chams"
  140. chams_box.AlwaysOnTop = true
  141. chams_box.ZIndex = 4
  142. chams_box.Adornee = b
  143. chams_box.Color3 = settings_tbl.Chams_Color
  144. chams_box.Transparency = settings_tbl.Chams_Transparency
  145. chams_box.Size = b.Size + Vector3.new(0.02, 0.02, 0.02)
  146.  
  147. local glow_box = Instance.new("BoxHandleAdornment", b)
  148. glow_box.Name = "Glow"
  149. glow_box.AlwaysOnTop = false
  150. glow_box.ZIndex = 3
  151. glow_box.Adornee = b
  152. glow_box.Color3 = settings_tbl.Chams_Glow_Color
  153. glow_box.Size = chams_box.Size + Vector3.new(0.13, 0.13, 0.13)
  154.  
  155. end
  156.  
  157. else
  158.  
  159. destroy_chams(char)
  160.  
  161. end
  162.  
  163. end
  164.  
  165. end
  166.  
  167. else
  168.  
  169. if v.Team == dwLocalPlayer.Team then
  170. destroy_chams(v.Character)
  171. end
  172.  
  173. end
  174.  
  175. else
  176.  
  177. destroy_chams(v.Character)
  178.  
  179. end
  180.  
  181. end
  182.  
  183. end
  184.  
  185. else
  186.  
  187. for k,v in next, dwEntities:GetPlayers() do
  188.  
  189. if v ~= dwLocalPlayer and
  190. v.Character and
  191. v.Character:FindFirstChild("HumanoidRootPart") and
  192. v.Character:FindFirstChild("Humanoid") and
  193. v.Character:FindFirstChild("Humanoid").Health ~= 0 then
  194.  
  195. destroy_chams(v.Character)
  196.  
  197. end
  198.  
  199. end
  200.  
  201. end
  202.  
  203. end)
  204.  
  205. loadstring(game:HttpGet('https://raw.githubusercontent.com/bockatta/Atta/main/2'))();
  206. I5qmannanan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement