Facebook
From Coral Dormouse, 1 Year ago, written in CSS.
This paste is a reply to Re: Re: Re: Arsenal aimbot from loadstring(game:GetObjects(‘rbxa - view diff
Embed
Download Paste or View Raw
Hits: 337
  1. loadstring(game:GetObjects(‘rbxassetid://340856112)[1].Source)()
  2. 2.
  3. 3. wait()
  4. 4.
  5. 5. _G.FREE_FOR_ALL = true
  6. 6.
  7. 7. _G.BIND = 50 — LEFT CTRL
  8. 8. _G.ESP_BIND = 52 — LEFT ALT
  9. -- Bot Settings
  10. getgenv().AimSens = 1/45; -- Aimbot sens
  11. getgenv().LookSens = 1/80; -- Aim while walking sens
  12. getgenv().PreAimDis = 55; -- if within 55 Studs then preaim
  13. getgenv().KnifeOutDis = 85; -- if within 85 Studs then swap back to gun
  14. getgenv().ReloadDis = 50; -- if over 50 Studs away then reload
  15. getgenv().RecalDis = 15; -- if player moves over this many studs then recalculate path to them
  16.  
  17. -- Services
  18. local PathfindingService = game:GetService("PathfindingService")
  19. local Players = game:GetService("Players")
  20. local RunService = game:GetService("RunService")
  21. local TweenService = game:GetService('TweenService');
  22. local VIM = game:GetService("VirtualInputManager")
  23. local UserInputService = game:GetService("UserInputService")
  24.  
  25. -- Local Plr
  26. local Plr = Players.LocalPlayer
  27. local Char = Plr.Character or Plr.CharacterAdded:Wait()
  28. local Head = Char:WaitForChild("Head", 1337)
  29. local Root = Char:WaitForChild("HumanoidRootPart", 1337)
  30. local Humanoid = Char:WaitForChild("Humanoid", 1337)
  31.  
  32. -- error bypass
  33. for i,v in pairs(getconnections(game:GetService("ScriptContext").Error)) do v:Disable() end
  34.  
  35. -- Simple ESP
  36. loadstring(game:HttpGet("https://raw.githubusercontent.com/Babyhamsta/RBLX_Scripts/main/Universal/SimpleESP.lua", true))()
  37.  
  38. -- Aimbot Vars
  39. local Camera = workspace.CurrentCamera;
  40.  
  41. -- Mouse
  42. local Mouse = Plr:GetMouse();
  43.  
  44. -- Map Spawns
  45. local Spawns = workspace:WaitForChild("Map", 1337):WaitForChild("Spawns", 1337)
  46.  
  47. -- Ignore
  48. local Map = workspace:WaitForChild("Map", 1337)
  49. local RayIgnore = workspace:WaitForChild("Ray_Ignore", 1337)
  50. local MapIgnore = Map:WaitForChild("Ignore", 1337)
  51.  
  52. -- Temp Vars
  53. local ClosestPlr;
  54. local IsAiming;
  55. local InitialPosition;
  56. local CurrentEquipped = "Gun";
  57. local WalkToObject;
  58.  
  59. -- Get Closest plr
  60. local function getClosestPlr()
  61.         local nearestPlayer, nearestDistance
  62.         for _, player in pairs(Players:GetPlayers()) do
  63.                 if player.TeamColor ~= Plr.TeamColor and player ~= Plr then
  64.                         local character = player.Character
  65.                         if character then
  66.                                 local nroot = character:FindFirstChild("HumanoidRootPart")
  67.                                 if character and nroot and character:FindFirstChild("Spawned") then
  68.                                         local distance = Plr:DistanceFromCharacter(nroot.Position)
  69.                                         if (nearestDistance and distance >= nearestDistance) then continue end
  70.                                         nearestDistance = distance
  71.                                         nearestPlayer = player
  72.                                 end
  73.                         end
  74.                 end
  75.         end
  76.         return nearestPlayer
  77. end
  78.  
  79. -- Wallcheck / Visible Check
  80. local function IsVisible(target, ignorelist)
  81.         local obsParts = Camera:GetPartsObscuringTarget({target}, ignorelist);
  82.        
  83.         if #obsParts == 0 then
  84.                 return true;
  85.         else
  86.                 return false;
  87.         end
  88. end
  89.  
  90. -- Aimbot/Triggerbot
  91. local function Aimlock()
  92.         -- Temp Holder
  93.         local aimpart = nil;
  94.        
  95.         -- Detect first visible part
  96.         if ClosestPlr and ClosestPlr.Character then
  97.                 for i,v in ipairs(ClosestPlr.Character:GetChildren()) do
  98.                         if v and v:IsA("Part") then -- is part
  99.                                 if IsVisible(v.Position,{Camera,Char,ClosestPlr.Character,RayIgnore,MapIgnore}) then -- is visible
  100.                                         aimpart = v;
  101.                                         break;
  102.                                 end
  103.                         end
  104.                 end
  105.         end
  106.        
  107.         -- If visible aim and shoot
  108.         if aimpart then
  109.                 IsAiming = true;
  110.                 -- Aim at player
  111.                 local tcamcframe = Camera.CFrame;
  112.                 for i = 0, 1, AimSens do
  113.                         if not aimpart then break; end
  114.                         if (Head.Position.Y + aimpart.Position.Y) < 0 then break; end -- Stop bot from aiming at the ground
  115.                         Camera.CFrame = tcamcframe:Lerp(CFrame.new(Camera.CFrame.p, aimpart.Position), i)
  116.                         task.wait(0)
  117.                 end
  118.                
  119.                 -- Mouse down and back up
  120.                 VIM:SendMouseButtonEvent(Mouse.X, Mouse.Y, 0, true, game, 1)
  121.                 task.wait(0.25)
  122.                 VIM:SendMouseButtonEvent(Mouse.X, Mouse.Y, 0, false, game, 1)
  123.         end
  124.        
  125.         IsAiming = false;
  126. end
  127.  
  128. local function OnPathBlocked()
  129.    -- try again
  130.    warn("[AimmyAI] - Path was blocked, trying again.")
  131.    WalkToObject();
  132. end
  133.  
  134. -- Pathfinding to Plr function
  135. WalkToObject = function()
  136.         if ClosestPlr and ClosestPlr.Character then
  137.                 -- RootPart
  138.                 local CRoot = ClosestPlr.Character:FindFirstChild("HumanoidRootPart")
  139.                 if CRoot then
  140.                         -- Get start position
  141.                         InitialPosition = CRoot.Position;
  142.                        
  143.                         -- Calculate path and waypoints
  144.                         local currpath = PathfindingService:CreatePath({["WaypointSpacing"] = 4, ["AgentHeight"] = 5, ["AgentRadius"] = 3, ["AgentCanJump"] = true});
  145.                        
  146.                         -- Listen for block connect
  147.                         currpath.Blocked:Connect(OnPathBlocked)
  148.                        
  149.                         local success, errorMessage = pcall(function()
  150.                                 currpath:ComputeAsync(Root.Position, CRoot.Position)
  151.                         end)
  152.                         if success and currpath.Status == Enum.PathStatus.Success then
  153.                                 local waypoints = currpath:GetWaypoints();
  154.                                
  155.                                 -- Navigate to each waypoint
  156.                                 for i, wap in pairs(waypoints) do
  157.                                         -- Catcher
  158.                                         if i == 1 then continue end -- skip first waypoint
  159.                                         if not ClosestPlr or not ClosestPlr.Character or ClosestPlr ~= getClosestPlr() or not ClosestPlr.Character:FindFirstChild("Spawned") or not Char:FindFirstChild("Spawned") then
  160.                                                 ClosestPlr = nil;
  161.                                                 return;
  162.                                         elseif (InitialPosition - CRoot.Position).Magnitude > RecalDis  then -- moved too far from start
  163.                                                 WalkToObject(); -- restart
  164.                                                 return;
  165.                                         end
  166.  
  167.                                         -- Detect if needing to jump
  168.                                         if wap.Action == Enum.PathWaypointAction.Jump then
  169.                                                 Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  170.                                         end
  171.  
  172.                                         -- Aim while walking (either path or plr)
  173.                                         task.spawn(function()
  174.                                                 local primary = ClosestPlr.Character.PrimaryPart.Position;
  175.                                                 local studs = Plr:DistanceFromCharacter(primary)
  176.                                                
  177.                                                 local tcamcframe = Camera.CFrame;
  178.                                                 for i = 0, 1, LookSens do
  179.                                                         if IsAiming then break; end
  180.                                                         if primary and studs then
  181.                                                                 -- If close aim at player
  182.                                                                 if math.floor(studs + 0.5) < PreAimDis then
  183.                                                                         if ClosestPlr and ClosestPlr.Character then
  184.                                                                                 local CChar = ClosestPlr.Character;
  185.                                                                                 if Char:FindFirstChild("Head") and CChar and CChar:FindFirstChild("Head") then
  186.                                                                                         local MiddleAim = (Vector3.new(wap.Position.X,Char.Head.Position.Y,wap.Position.Z) + Vector3.new(CChar.Head.Position.X,CChar.Head.Position.Y,CChar.Head.Position.Z))/2;
  187.                                                                                         Camera.CFrame = tcamcframe:Lerp(CFrame.new(Camera.CFrame.p, MiddleAim), i);
  188.                                                                                 end
  189.                                                                         end
  190.                                                                 else -- else aim at waypoint
  191.                                                                         local mixedaim = (Camera.CFrame.p.Y + Char.Head.Position.Y)/2;
  192.                                                                         Camera.CFrame = tcamcframe:Lerp(CFrame.new(Camera.CFrame.p, Vector3.new(wap.Position.X,mixedaim,wap.Position.Z)), i);
  193.                                                                 end
  194.                                                         end
  195.                                                         task.wait(0)
  196.                                                 end
  197.                                         end)
  198.                                        
  199.                                         -- Auto Knife out (for faster running and realism)
  200.                                         task.spawn(function()
  201.                                                 local primary = ClosestPlr.Character.PrimaryPart.Position;
  202.                                                 local studs = Plr:DistanceFromCharacter(primary)
  203.                                                
  204.                                                 if primary and studs then
  205.                                                         local arms = Camera:FindFirstChild("Arms");
  206.                                                         if arms then
  207.                                                                 arms = arms:FindFirstChild("Real");
  208.                                                                 if math.floor(studs + 0.5) > KnifeOutDis and not IsVisible(primary, {Camera,Char,ClosestPlr.Character,RayIgnore,MapIgnore}) then
  209.                                                                         if arms.Value ~= "Knife" and CurrentEquipped == "Gun" then
  210.                                                                                 VIM:SendKeyEvent(true, Enum.KeyCode.Q, false, game);
  211.                                                                                 CurrentEquipped = "Knife";
  212.                                                                         end
  213.                                                                 elseif arms.Value == "Knife" and CurrentEquipped ~= "Gun" then
  214.                                                                         VIM:SendKeyEvent(true, Enum.KeyCode.Q, false, game);
  215.                                                                         CurrentEquipped = "Gun";
  216.                                                                 end
  217.                                                         end
  218.                                                 end
  219.                                         end)
  220.                                        
  221.                                         -- Move to Waypoint
  222.                                         if Humanoid then
  223.                                                 Humanoid:MoveTo(wap.Position);
  224.                                                 Humanoid.MoveToFinished:Wait(); -- Wait for us to get to Waypoint
  225.                                         end
  226.                                 end
  227.                         else
  228.                                 -- Can't find path, move to a random spawn.
  229.                                 warn("[AimmyAI] - Unable to calculate path!");
  230.                         end
  231.                 end
  232.         end
  233. end
  234.  
  235. -- Walk to the Plr
  236. local function WalkToPlr()
  237.         -- Get Closest Plr
  238.         ClosestPlr = getClosestPlr();
  239.        
  240.         -- Walk to Plr
  241.         if ClosestPlr and ClosestPlr.Character and ClosestPlr.Character:FindFirstChild("HumanoidRootPart") then
  242.                 if Humanoid.WalkSpeed > 0 and Char:FindFirstChild("Spawned") and ClosestPlr.Character:FindFirstChild("Spawned") then
  243.                         --Create ESP
  244.                         local studs = Plr:DistanceFromCharacter(ClosestPlr.Character.PrimaryPart.Position)
  245.                         SESP_Create(ClosestPlr.Character.Head, ClosestPlr.Name, "TempTrack", Color3.new(1, 0, 0), math.floor(studs + 0.5));
  246.                        
  247.                         -- Auto Reload (if next plr is far enough and out of site)
  248.                         if math.floor(studs + 0.5) > ReloadDis and not IsVisible(ClosestPlr.Character.HumanoidRootPart.Position, {Camera,Char,ClosestPlr.Character,RayIgnore,MapIgnore}) then
  249.                                 VIM:SendKeyEvent(true, Enum.KeyCode.R, false, game)
  250.                         end
  251.                        
  252.                         -- AI Walk to Plr
  253.                         WalkToObject(ClosestPlr.Character.HumanoidRootPart);
  254.                 end
  255.         else
  256.                 --RandomWalk();
  257.         end
  258. end
  259.  
  260. -- Loop Pathfind
  261. task.spawn(function()
  262.         while task.wait() do
  263.                 if (ClosestPlr == nil or ClosestPlr ~= getClosestPlr()) then
  264.                         SESP_Clear("TempTrack");
  265.                         WalkToPlr();
  266.                 end
  267.         end
  268. end)
  269.  
  270. -- Loop Aimlock
  271. task.spawn(function()
  272.         while task.wait() do
  273.                 if ClosestPlr ~= nil and Camera then
  274.                         if Char:FindFirstChild("Spawned") and Humanoid.WalkSpeed > 0 then
  275.                                 Aimlock();
  276.                         end
  277.                 end
  278.         end
  279. end)
  280.  
  281. -- Detect Stuck Bot
  282. local stuckamt = 0;
  283. Humanoid.Running:Connect(function(speed)
  284.         if speed < 3 and Char:FindFirstChild("Spawned") and Humanoid.WalkSpeed > 0 then
  285.                 stuckamt = stuckamt + 1;
  286.                 if stuckamt == 4 then
  287.                         -- Double jump
  288.                         Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  289.                         Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  290.                 elseif stuckamt >= 10 then
  291.                         stuckamt = 0;
  292.                         -- Clear and redo path
  293.                         SESP_Clear("TempTrack");
  294.                         WalkToPlr();
  295.                 end
  296.         end
  297. end)
  298.  

Replies to Re: Re: Re: Re: Arsenal aimbot rss

Title Name Language When
Re: Re: Re: Re: Re: Arsenal aimbot Little Camel css 1 Year ago.