AimbotMan2022

Strucid Aimbot+Esp

Nov 29th, 2020 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.88 KB | None | 0 0
  1. if not game:IsLoaded() then
  2. game.Loaded:wait()
  3. end
  4.  
  5. local Engine = loadstring(game:HttpGetAsync("https://pastebin.com/raw/3sAyCngN"))()
  6.  
  7. local ClosureCheck = is_synapse_function or is_protosmasher_closure or is_sirhurt_closure or issentinelclosure;
  8. local function FindLocal(Name)
  9. local Matches = {};
  10. for i, v in pairs(getgc()) do
  11. if typeof(v) == "function" and not ClosureCheck(v) then
  12. if getinfo(v).Name == Name then
  13. Matches[i] = v;
  14. end;
  15. end;
  16. end;
  17. return Matches;
  18. end;
  19.  
  20. local Place = "Universal"
  21. local GetHealth = nil
  22.  
  23. if game.PlaceId == 292439477 then
  24. local Place = "Phantom Forces"
  25. local GetHealth = FindLocal("gethealth")[2]
  26. end
  27.  
  28. local AimbotTab = Engine:CreateSection("Aimbot")
  29. local VisualsTab = Engine:CreateSection("Visuals")
  30. loadstring(game:HttpGet("https://pastebin.com/raw/06MMJp4c", true))() -- ESP Initiation
  31. local ESP = shared.uESP
  32. ESP.Enabled = false
  33. ESP.Settings.Box3D = false
  34. ESP.Settings.DrawTracers = false
  35. ESP.Settings.DrawDistance = false
  36. ESP.Settings.DrawNames = false
  37. ESP.Settings.TextOutline = false
  38. ESP.Settings.VisibilityCheck = false
  39. ESP.Settings.TeamColor = Color3.fromRGB(0, 255, 127)
  40. ESP.Settings.EnemyColor = Color3.fromRGB(246, 46, 25)
  41.  
  42. local RunService = game:GetService("RunService")
  43. local Players = game:GetService("Players")
  44. local UserInputService = game:GetService("UserInputService")
  45.  
  46. local Client = Players.LocalPlayer
  47. local Mouse = Client:GetMouse()
  48. local Camera = game:GetService("Workspace"):FindFirstChildOfClass("Camera")
  49.  
  50. local AimbotEnabled = false
  51. local AimbotActive = false
  52. local VisibilityCheck = false
  53. local TeamCheck = false
  54. local ShowFOV = false
  55. local AimingAt = nil
  56. local Smoothness = 12.5
  57. local MovementPrediction = false
  58. local MovementPredictionStrength = 1
  59.  
  60. local FOV_Color = Color3.fromRGB(0, 255, 127)
  61. local FOV_Size = 0
  62.  
  63. local FOVCircle = Drawing.new("Circle")
  64. FOVCircle.Position = Vector2.new(0, 0)
  65. FOVCircle.Radius = FOV_Size
  66. FOVCircle.Thickness = 1
  67. FOVCircle.Filled = false
  68. FOVCircle.Transparency = 1
  69. FOVCircle.Visible = true
  70. FOVCircle.Color = FOV_Color
  71.  
  72. local function AimToPosition(Position)
  73. local AimX = ((Position.X - Mouse.X) + 0) / Smoothness
  74. local AimY = ((Position.Y - Mouse.Y - 36) + 0) / Smoothness
  75. return AimX, AimY
  76. end
  77.  
  78. local function InitAimbot()
  79. if game:GetService("Workspace"):FindFirstChildOfClass("Camera") then
  80. local Camera = game:GetService("Workspace"):FindFirstChildOfClass("Camera")
  81. end
  82. local ScreenSize = Camera.ViewportSize
  83. if FOVCircle then
  84. FOVCircle.Radius = FOV_Size
  85. FOVCircle.Visible = ShowFOV
  86. FOVCircle.Color = FOV_Color
  87. FOVCircle.Transparency = 1
  88. FOVCircle.Filled = false
  89. FOVCircle.Position = Vector2.new(Mouse.X, Mouse.Y + 36)
  90. end
  91. if AimbotEnabled == false then return end
  92. if AimbotActive == true then
  93. local Closest = {nil, nil, nil, nil, nil}
  94. for i, v in pairs(Players:GetChildren()) do
  95. pcall(function()
  96. if v.Character and v ~= Client then
  97. local HumanoidHealth = nil
  98. if v.Character:FindFirstChildOfClass("Humanoid") ~= nil then
  99. HumanoidHealth = v.Character:FindFirstChildOfClass("Humanoid").Health
  100. end
  101. if HumanoidHealth == nil or HumanoidHealth > 0 then
  102. local PlayerRoot = v.Character:FindFirstChild("HumanoidRootPart") or v.Character:FindFirstChild("Torso")
  103. local PlayerHead = v.Character:FindFirstChild("Head") or PlayerRoot
  104. local PlayerScreen, InFOV = Camera:WorldToViewportPoint(PlayerRoot.Position)
  105. local DistanceFromCenter = 0
  106. DistanceFromCenter = (Vector2.new(PlayerScreen.X, PlayerScreen.Y) - Vector2.new(Mouse.X, Mouse.Y)).magnitude
  107. if (InFOV == true and DistanceFromCenter < FOV_Size) or AimingAt == v then
  108. if AimingAt == v then
  109. DistanceFromCenter = 0
  110. end
  111. if (TeamCheck == true and v.Team ~= Client.Team) or TeamCheck == false then
  112. local Obscuring = false
  113. if VisibilityCheck == true then
  114. local Parts = Camera:GetPartsObscuringTarget({Client.Character.Head.Position, PlayerHead.Position}, {Camera, Client.Character})
  115. for i2, v2 in pairs(Parts) do
  116. if v2:IsDescendantOf(v.Character) == false and v2.Transparency == 0 then
  117. Obscuring = true
  118. end
  119. end
  120. end
  121. if Obscuring == false and ((Closest[1] ~= nil and DistanceFromCenter < Closest[1]) or Closest[1] == nil) then
  122. if Closest[1] == nil or (DistanceFromCenter < Closest[1]) then
  123. local Prediction = Vector3.new(0, 0, 0)
  124. if MovementPrediction == true then
  125. Prediction = PlayerRoot.Velocity * (MovementPredictionStrength / 10) * (Client.Character.Head.Position - PlayerHead.Position).magnitude / 100
  126. end
  127. Closest[1] = DistanceFromCenter
  128. local PlayerAim = nil
  129. if AimPart == "Torso" then
  130. PlayerAim = v.Character:FindFirstChild("HumanoidRootPart") or v.Character:FindFirstChild("Torso")
  131. else
  132. PlayerAim = v.Character.Head
  133. end
  134. Closest[2] = PlayerAim
  135. Closest[3] = Vector2.new(PlayerScreen.X, PlayerScreen.Y)
  136. Closest[4] = Prediction
  137. Closest[5] = v
  138. end
  139. end
  140. end
  141. end
  142. end
  143. end
  144. end)
  145. end
  146. if Closest[1] ~= nil and Closest[2] ~= nil and Closest[3] ~= nil and Closest[4] ~= nil and Closest[5] ~= nil then
  147. pcall(function()
  148. local AimAt = Camera:WorldToViewportPoint(Closest[2].Position + Closest[4])
  149. mousemoverel(AimToPosition(Vector2.new(AimAt.X, AimAt.Y)))
  150. AimingAt = Closest[5]
  151. end)
  152. else
  153. AimingAt = nil
  154. end
  155. end
  156. end
  157.  
  158. AimbotTab:Label("Toggles")
  159. AimbotTab:Toggle("Enabled", function(State)
  160. AimbotEnabled = State
  161. end)
  162. AimbotTab:Label("Aimbot Settings")
  163. AimbotTab:Toggle("Movement Prediction", function(State)
  164. MovementPredicition = State
  165. end)
  166. AimbotTab:Slider("Movement Prediction Strength", {min = 0, max = 20}, function(State)
  167. MovementPredictionStrength = State
  168. end)
  169. AimbotTab:Toggle("Team Check", function(State)
  170. TeamCheck = State
  171. end)
  172. AimbotTab:Toggle("Visibility Check", function(State)
  173. VisibilityCheck = State
  174. end)
  175. AimbotTab:Toggle("Show FOV Cirlce", function(State)
  176. ShowFOV = State
  177. end)
  178. AimbotTab:Slider("Field Of View", {min = 0, max = 200}, function(State)
  179. FOV_Size = State
  180. end)
  181. AimbotTab:Label("Aimbot Visual Settings")
  182. AimbotTab:ColorPicker("Circle Color", Color3.fromRGB(0, 255, 127), function(State)
  183. FOV_Color = State
  184. end)
  185.  
  186. VisualsTab:Label("Toggles")
  187. VisualsTab:Toggle("Boxes", function(State)
  188. ESP.Enabled = State
  189. end)
  190. VisualsTab:Toggle("Tracers", function(State)
  191. ESP.Settings.DrawTracers = State
  192. end)
  193. VisualsTab:Label("Options")
  194. VisualsTab:Toggle("Show Info", function(State)
  195. ESP.Settings.DrawDistance = State
  196. ESP.Settings.DrawNames = State
  197. end)
  198. VisualsTab:Label("ESP Colors")
  199. VisualsTab:ColorPicker("Ally Color", Color3.fromRGB(0, 255, 127), function(State)
  200. ESP.Settings.TeamColor = State
  201. end)
  202. VisualsTab:ColorPicker("Enemy Color", Color3.fromRGB(246, 46, 25), function(State)
  203. ESP.Settings.EnemyColor = State
  204. end)
  205.  
  206. UserInputService.InputBegan:Connect(function(Input, GPE)
  207. if GPE or AimbotEnabled == false then return end
  208. if Input.UserInputType == Enum.UserInputType.MouseButton2 then
  209. AimbotActive = true
  210. end
  211. end)
  212.  
  213. UserInputService.InputEnded:Connect(function(Input, GPE)
  214. if GPE or AimbotEnabled == false then return end
  215. if Input.UserInputType == Enum.UserInputType.MouseButton2 then
  216. AimbotActive = false
  217. AimingAt = nil
  218. end
  219. end)
  220.  
  221. RunService:BindToRenderStep("InitAimbot", 1, InitAimbot)
  222. Engine:Ready()
Add Comment
Please, Sign In to add comment