ImRealLenny

Universal ESP + Aimbot - Undetectable on most games

Jul 27th, 2022 (edited)
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.77 KB | None | 0 0
  1. -- Aimbot configuration -- Only edit these values
  2. local aimbotMaxDistance = 500 -- distance on which aimbot will stop targeting players. only float values are accepted
  3. local aimbotKeybind = Enum.KeyCode.LeftAlt -- key that player will have to hold in order to enable aimbot targeting. only enum library values are accepted
  4. local aimbotTargetPartName = 'Head' -- name of the part that aimbot will target. DO NOT enter R6 or R15 specific parts. only string values are accepted
  5. local doFriendCheck = true -- aimbot won't target players from user's friend list. only boolean values are accepted
  6. local activateWithMouse = true -- alternative aimbot usage method via right mouse button. only boolean values are accepted
  7. ------------------------------------------------------------------------------------------------------------------------------
  8.  
  9. -- Message
  10. game.StarterGui:SetCore('SendNotification', {
  11.     Title = 'Thanks for using my cheat!';
  12.     Text = 'Cheat made by ImRealLenny#5061';
  13.     Button1 = 'Ty daddy';
  14. })
  15.  
  16. -- Instances
  17. local EZE_S_P = Instance.new("BillboardGui")
  18. local TargetName = Instance.new("TextLabel")
  19. local Point = Instance.new("Frame")
  20. local UICorner = Instance.new("UICorner")
  21. local HealthbarBg = Instance.new("Frame")
  22. local Frame = Instance.new("Frame")
  23.  
  24. -- Properties
  25.  
  26. EZE_S_P.Name = "EZE_S_P"
  27. EZE_S_P.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28. EZE_S_P.Active = true
  29. EZE_S_P.AlwaysOnTop = true
  30. EZE_S_P.LightInfluence = 1.000
  31. EZE_S_P.Size = UDim2.new(3, 0, 3, 0)
  32.  
  33. TargetName.Name = "TargetName"
  34. TargetName.Parent = EZE_S_P
  35. TargetName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  36. TargetName.BackgroundTransparency = 1.000
  37. TargetName.Size = UDim2.new(1, 0, 0.25, 0)
  38. TargetName.Font = Enum.Font.Gotham
  39. TargetName.Text = "{tar_name}"
  40. TargetName.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. TargetName.TextScaled = true
  42. TargetName.TextSize = 14.000
  43. TargetName.TextStrokeTransparency = 0.500
  44. TargetName.TextWrapped = true
  45.  
  46. Point.Name = "Point"
  47. Point.Parent = EZE_S_P
  48. Point.AnchorPoint = Vector2.new(0.5, 0.5)
  49. Point.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  50. Point.Position = UDim2.new(0.5, 0, 0.5, 0)
  51. Point.Size = UDim2.new(0.330000013, 0, 0.330000013, 0)
  52.  
  53. UICorner.CornerRadius = UDim.new(1, 0)
  54. UICorner.Parent = Point
  55.  
  56. HealthbarBg.Name = "HealthbarBg"
  57. HealthbarBg.Parent = EZE_S_P
  58. HealthbarBg.AnchorPoint = Vector2.new(0.5, 1)
  59. HealthbarBg.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  60. HealthbarBg.BorderSizePixel = 0
  61. HealthbarBg.Position = UDim2.new(0.5, 0, 0.800000012, 0)
  62. HealthbarBg.Size = UDim2.new(1, 0, 0.100000001, 0)
  63.  
  64. Frame.Parent = HealthbarBg
  65. Frame.BackgroundColor3 = Color3.fromRGB(12, 255, 0)
  66. Frame.BorderSizePixel = 0
  67. Frame.Size = UDim2.new(0.5, 0, 1, 0)
  68.  
  69. -- Aimbot related stuff
  70. local cam = workspace.CurrentCamera
  71.  
  72. function getNearestPlayer()
  73.     local maxDist = aimbotMaxDistance
  74.     local target = nil
  75.     local succes, errorMessage = pcall(function()
  76.         for i, v in ipairs(game.Players:GetPlayers()) do
  77.             if v:IsA('Player') then
  78.                 if v.Name ~= game.Players.LocalPlayer.Name then
  79.                     print('Found player')
  80.                     if v.Team ~= game.Players.LocalPlayer.Team or v.Neutral then
  81.                         if not game.Players.LocalPlayer:IsFriendsWith(v.UserId) and doFriendCheck == true or doFriendCheck == false then
  82.                             print('Found player is an enemy')
  83.                             if v.Character then
  84.                                 local char = v.Character
  85.                                 char:WaitForChild('HumanoidRootPart')
  86.                                 if char:FindFirstChild('HumanoidRootPart') then
  87.                                     local hrp = char:FindFirstChild("HumanoidRootPart")
  88.                                     local dist = (hrp.Position - game.Players.LocalPlayer.Character.PrimaryPart.Position).Magnitude
  89.                                     local hum = hrp.Parent:FindFirstChild('Humanoid')
  90.                                     if hum then
  91.                                         if hum.Health > 0 then
  92.                                             local _, isOnScreen = cam:WorldToScreenPoint(hrp.Position)
  93.                                             if isOnScreen then
  94.                                                 if dist < maxDist then
  95.                                                     print('Set target')
  96.                                                     maxDist = dist
  97.                                                     target = v
  98.                                                 end
  99.                                             end
  100.                                         end
  101.                                     end
  102.                                 end
  103.                             end
  104.                         end
  105.                     end
  106.                 end
  107.             end
  108.         end
  109.     end)
  110.     if succes then
  111.         print('void getNearestPlayer() succed')
  112.     end
  113.     if game.Players.LocalPlayer.Character then
  114.         if game.Players.LocalPlayer.Character.Humanoid then
  115.             if game.Players.LocalPlayer.Character.Humanoid.Health > 0 then
  116.                 return target
  117.             end
  118.         end
  119.     end
  120. end
  121.  
  122. local isAimbotKeyDown = false
  123. local mouse = game.Players.LocalPlayer:GetMouse()
  124.  
  125. mouse.Button2Down:Connect(function()
  126.     if activateWithMouse == true then
  127.         isAimbotKeyDown = true
  128.     end
  129. end)
  130. mouse.Button2Up:Connect(function()
  131.     if activateWithMouse == true then
  132.         isAimbotKeyDown = false
  133.     end
  134. end)
  135.  
  136. game:GetService('UserInputService').InputBegan:Connect(function(key)
  137.     if key.KeyCode == aimbotKeybind then
  138.         print('Enabled')
  139.         isAimbotKeyDown = true
  140.     end
  141. end)
  142.  
  143. game:GetService('UserInputService').InputEnded:Connect(function(key)
  144.     if key.KeyCode == aimbotKeybind then
  145.         print('Disabled')
  146.         isAimbotKeyDown = false
  147.     end
  148. end)
  149.  
  150. game:GetService('RunService').RenderStepped:Connect(function()
  151.     local closestPlayer = getNearestPlayer()
  152.     if isAimbotKeyDown == true then
  153.         if closestPlayer then
  154.             print(closestPlayer.Name..' is the closest player')
  155.             if closestPlayer.Character:FindFirstChild(aimbotTargetPartName) then
  156.                 print('Found target part')
  157.                 cam.CFrame = CFrame.new(cam.CFrame.Position, closestPlayer.Character.Head.Position)
  158.             end
  159.         end
  160.     end
  161.     for i, v in ipairs(game.Players:GetPlayers()) do
  162.         if v:IsA('Player') then
  163.             if v ~= game.Players.LocalPlayer then
  164.                 local char = v.Character
  165.                 if char then
  166.                     if char.PrimaryPart then
  167.                         if char.PrimaryPart:FindFirstChild(EZE_S_P.Name) then
  168.                             local hum = char:WaitForChild('Humanoid')
  169.                             local ezEspFrame = char.PrimaryPart:FindFirstChild(EZE_S_P.Name)
  170.                             ezEspFrame.TargetName.Text = v.Name
  171.                             ezEspFrame.HealthbarBg.Frame.Size = UDim2.new(hum.Health / hum.MaxHealth, 0, 1, 0)
  172.                            
  173.                         else
  174.                             local hum = char:WaitForChild('Humanoid')
  175.                             local ezEspFrame = EZE_S_P:Clone()
  176.                             ezEspFrame.Parent = char.PrimaryPart
  177.                             ezEspFrame.TargetName.Text = v.Name
  178.                             ezEspFrame.HealthbarBg.Frame.Size = UDim2.new(hum.Health / hum.MaxHealth, 0, 1, 0)
  179.                         end
  180.                     end
  181.                 end
  182.             end
  183.         end
  184.     end
  185. end)
  186.  
  187. --[[
  188. Cheat was tested and is 100% undetectable on:
  189. - Criminality - Although can be reported
  190. - Jailbreak - Although can be reported
  191. - Town - Although can be reported
  192. - Blackhawk Rescue Mission 5
  193.  
  194. Cheat was injected (tested) and is 100% working on:
  195. - KRNL
  196. - Synapse X
  197.  
  198. For sake of being undetected, it's recommended to use loadstring, although copy/paste method works aswell.
  199. Just copy this line of code and paste into injector:
  200. --
  201. loadstring("https://pastebin.com/raw/h8NczqzW", true)
  202. --
  203.  
  204. *Data is valid as for 27th July 2022.
  205. ]]
Advertisement
Add Comment
Please, Sign In to add comment