Advertisement
KekSec

ROBLOX AIMBOT FOR SYNAPSE X WORKS FOR ARSENAL AND PAINTBALL

Nov 17th, 2020
4,591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.18 KB | None | 0 0
  1. --[AimBot Settings]--
  2. local FreeForAll = false
  3.  
  4. local AimingFor = "Head"
  5.  
  6. local AutoAim = false
  7.  
  8. local Chams = true
  9.  
  10. local PointToAiming = false
  11.  
  12. local IgnoreFOV = false
  13. --[End AimBot Settings]--
  14.  
  15. --[AimBot HotKeys]--
  16. local ModeSwitch = "Q" --Changes whether games FFA or TDM (shoot at all or only enemies).
  17.  
  18. local AimSwitch = "E" --Change where to shoot at the 'Head' or 'HumanoidRootPart'.
  19.  
  20. local AutoAimKey = "P" --Change whether you manually lockon or auto-lockon.
  21.  
  22. local ChamSwitch = "T" --Change whether chams(esp) is disabled or enabled)
  23.  
  24. local PointSwitch = "I" --Change wherer to render a line between you and who you're aiming at.
  25.  
  26. local WallSwitch = "Y" --Change whether to be able to aim at people through walls.
  27. --[End AimBot HotKeys]--
  28.  
  29. --[[
  30.                 NOTHING BELOW HERE NEEDS TO BE EDITED  
  31.                 NOTHING BELOW HERE NEEDS TO BE EDITED  
  32.                 NOTHING BELOW HERE NEEDS TO BE EDITED  
  33.                 NOTHING BELOW HERE NEEDS TO BE EDITED  
  34. --]]
  35.  
  36. --[[
  37.    
  38.   /$$$$$$                  /$$                 /$$       /$$$$$$$                       /$$$$$$                                  /$$                        
  39.  /$$__  $$                | $$                | $$      | $$__  $$                     /$$__  $$                                | $$                        
  40. | $$  \__/  /$$$$$$   /$$$$$$$  /$$$$$$   /$$$$$$$      | $$  \ $$ /$$   /$$ /$$      | $$  \__/  /$$$$$$$  /$$$$$$   /$$$$$$  /$$$$$$    /$$$$$$   /$$$$$$
  41. | $$       /$$__  $$ /$$__  $$ /$$__  $$ /$$__  $$      | $$$$$$$ | $$  | $$|__/      |  $$$$$$  /$$_____/ |____  $$ /$$__  $$|_  $$_/   /$$__  $$ /$$__  $$
  42. | $$      | $$  \ $$| $$  | $$| $$$$$$$$| $$  | $$      | $$__  $$| $$  | $$           \____  $$| $$        /$$$$$$$| $$  \ $$  | $$    | $$$$$$$$| $$  \__/
  43. | $$    $$| $$  | $$| $$  | $$| $$_____/| $$  | $$      | $$  \ $$| $$  | $$ /$$       /$$  \ $$| $$       /$$__  $$| $$  | $$  | $$ /$$| $$_____/| $$      
  44. |  $$$$$$/|  $$$$$$/|  $$$$$$$|  $$$$$$$|  $$$$$$$      | $$$$$$$/|  $$$$$$$|__/      |  $$$$$$/|  $$$$$$$|  $$$$$$$| $$$$$$$/  |  $$$$/|  $$$$$$$| $$      
  45.  \______/  \______/  \_______/ \_______/ \_______/      |_______/  \____  $$           \______/  \_______/ \_______/| $$____/    \___/   \_______/|__/      
  46.                                                                    /$$  | $$                                        | $$                                    
  47.                                                                   |  $$$$$$/                                        | $$                                    
  48.                                                                    \______/                                         |__/                                    
  49.  
  50. --]]
  51.  
  52. warn("[ScapAssist] Your Hotkeys Are: ModeSwitch["..ModeSwitch.."], AimSwitch["..AimSwitch.."], AutoAimKey["..AutoAimKey.."], ChamSwitch["..ChamSwitch.."], PointSwitch["..PointSwitch.."], WallSwitch["..WallSwitch.."]")
  53.  
  54. --[Aimbot Hooks]--
  55. local AimingAt = nil
  56.  
  57. local Distance = 0
  58.  
  59. local Camera = game.Workspace.CurrentCamera
  60.  
  61. local Mouse = game.Players.LocalPlayer:GetMouse()
  62.  
  63. local MouseDown = false
  64.  
  65. local Vals = {}
  66.  
  67. local Dist = {}
  68. --[End Aimbot Hooks]--
  69. local Players = game:GetService("Players")
  70.  
  71. local LocalPlayer = Players.LocalPlayer
  72.  
  73. local Mouse = LocalPlayer:GetMouse()
  74. --[Aimbot Framework]--
  75. game:GetService("RunService").RenderStepped:connect(function()
  76.     if game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name) then
  77.         for i,c in pairs(Vals) do
  78.             table.remove(Vals, i)
  79.         end
  80.         for i,c in pairs(Dist) do
  81.             table.remove(Dist, i)
  82.         end
  83.         for _,v in pairs(game.Players:GetChildren()) do
  84.             if game.Workspace:FindFirstChild(v.Name) then
  85.                 if FreeForAll == true then
  86.                     if v.Name ~= game.Players.LocalPlayer.Name and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild(AimingFor) and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  87.                         local Distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.Character.HumanoidRootPart.Position).magnitude
  88.                         local Position,Bool = Camera:WorldToScreenPoint(v.Character[AimingFor].Position)                   
  89.                         if IgnoreFOV == false then
  90.                             if Bool == true then
  91.                                 table.insert(Vals, {v.Name, Distance})
  92.                                 table.insert(Dist, Distance)
  93.                             end
  94.                         else
  95.                             table.insert(Vals, {v.Name, Distance})
  96.                             table.insert(Dist, Distance)
  97.                         end
  98.                     end
  99.                 elseif FreeForAll == false then
  100.                     if v.Name ~= game.Players.LocalPlayer.Name and v.TeamColor ~= game.Players.LocalPlayer.TeamColor and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild(AimingFor) and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  101.                         local Distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-v.Character.HumanoidRootPart.Position).magnitude
  102.                         local Position,Bool = Camera:WorldToScreenPoint(v.Character[AimingFor].Position)
  103.                         if IgnoreFOV == false then
  104.                             if Bool == true then
  105.                                 table.insert(Vals, {v.Name, Distance})
  106.                                 table.insert(Dist, Distance)
  107.                             end
  108.                         else
  109.                             table.insert(Vals, {v.Name, Distance})
  110.                             table.insert(Dist, Distance)
  111.                         end
  112.                     end
  113.                 end
  114.             end
  115.         end
  116.         for _,t in pairs(Vals) do
  117.             if t[2] == math.min(unpack(Dist)) then
  118.                 AimingAt = t[1]
  119.             end
  120.         end
  121.         if AutoAim == true or MouseDown == true and AimingAt ~= nil and game.Players[AimingAt].Character:FindFirstChild(AimingFor) and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  122.             local Position,Bool = Camera:WorldToScreenPoint(game.Players[AimingAt].Character[AimingFor].Position)
  123.             if IgnoreFOV == true then
  124.                 if game.Players[AimingAt].Character:FindFirstChild(AimingFor) then
  125.                     Camera.CoordinateFrame = CFrame.new(Camera.Focus.p, game.Players[AimingAt].Character[AimingFor].Position)
  126.                 end
  127.             elseif IgnoreFOV == false then
  128.                 if game.Players[AimingAt].Character:FindFirstChild(AimingFor) and Bool == true then
  129.                     Camera.CoordinateFrame = CFrame.new(Camera.Focus.p, game.Players[AimingAt].Character[AimingFor].Position)
  130.                 end
  131.             end
  132.             if Mouse.Target and Players:FindFirstChild(Mouse.Target.Parent.Name) then
  133.             local HitPlayer = Players:FindFirstChild(Mouse.Target.Parent.Name)
  134.             if HitPlayer.Team ~= LocalPlayer.Team then
  135.             mouse1press()
  136.             wait(0.3)
  137.             mouse1release()
  138.             end
  139.             end
  140.         end
  141.        
  142.         if PointToAiming and AimingAt ~= nil and game.Players[AimingAt].Character:FindFirstChild(AimingFor) and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  143.             if game.Players[AimingAt].Character[AimingFor]:FindFirstChild("Attachment") then
  144.                 game.Players[AimingAt].Character[AimingFor].Attachment:Destroy()
  145.             end
  146.             local Attach = Instance.new("Attachment")
  147.             Attach.Parent = game.Players[AimingAt].Character[AimingFor]
  148.             if game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChild("Attachment") then
  149.                 game.Players.LocalPlayer.Character.HumanoidRootPart.Attachment:Destroy()
  150.             end
  151.             local Attach2 = Instance.new("Attachment")
  152.             Attach.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  153.             if game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChild("RodConstraint") then
  154.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RodConstraint:Destroy()
  155.             end
  156.             local Con = Instance.new("RodConstraint")
  157.             Con.Attachment0 = Attach
  158.             Con.Attachment1 = Attach2
  159.             Con.Visible = true
  160.             Con.Thickness = 5
  161.             Con.Color = BrickColor.new("Lime green")
  162.             Con.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  163.         elseif not PointToAiming then
  164.             if game.Players.LocalPlayer.Character.HumanoidRootPart:FindFirstChild("RodConstraint") then
  165.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RodConstraint:Destroy()
  166.             end
  167.         end
  168.        
  169.         if Chams and AimingAt ~= nil and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  170.             for _,q in pairs(Camera:GetChildren()) do
  171.                 if q:IsA("BoxHandleAdornment") then
  172.                     q:Destroy()
  173.                 end
  174.             end
  175.             for _,v in pairs(game.Players:GetChildren()) do
  176.                 if v.Name ~= game.Players.LocalPlayer.Name and game.Workspace:FindFirstChild(v.Name) then
  177.                     for _,c in pairs(v.Character:GetChildren()) do
  178.                         if c:IsA("BasePart") then
  179.                             if v.TeamColor == game.Players.LocalPlayer.TeamColor then
  180.                                 local esp = Instance.new("BoxHandleAdornment", Camera)
  181.                                 esp.Color3 = Color3.new(0, 255, 0)
  182.                                 esp.Size = c.Size
  183.                                 esp.AlwaysOnTop = true
  184.                                 esp.ZIndex = 1
  185.                                 esp.Adornee = c
  186.                             elseif v.TeamColor ~= game.Players.LocalPlayer.TeamColor then
  187.                                 local esp = Instance.new("BoxHandleAdornment", Camera)
  188.                                 esp.Color3 = Color3.new(255, 0, 0)
  189.                                 esp.Size = c.Size
  190.                                 esp.AlwaysOnTop = true
  191.                                 esp.ZIndex = 1
  192.                                 esp.Adornee = c
  193.                             end
  194.                         end
  195.                     end
  196.                 end
  197.             end
  198.         elseif not Chams then
  199.             for _,q in pairs(Camera:GetChildren()) do
  200.                 if q:IsA("BoxHandleAdornment") then
  201.                     q:Destroy()
  202.                 end
  203.             end
  204.         end
  205.     end
  206. end)
  207.  
  208. game:GetService("UserInputService").InputBegan:connect(function(key)
  209.     if key.UserInputType == Enum.UserInputType.Keyboard then
  210.         if key.KeyCode == Enum.KeyCode[ModeSwitch] then
  211.             if FreeForAll == true then
  212.                 FreeForAll = false
  213.                 warn("[ScapAssist] FreeForAll set to: false")
  214.             else
  215.                 FreeForAll = true
  216.                 warn("[ScapAssist] FreeForAll set to: true")
  217.             end
  218.         elseif key.KeyCode == Enum.KeyCode[AimSwitch] then
  219.             if AimingFor == "Head" then
  220.                 AimingFor = "HumanoidRootPart"
  221.             elseif AimingFor == "HumanoidRootPart" then
  222.                 AimingFor = "Head"
  223.                
  224.             end
  225.         warn("[ScapAssist] AimingFor set to: "..AimingFor)
  226.         elseif key.KeyCode == Enum.KeyCode[AutoAimKey] then
  227.             if AutoAim == true then
  228.                 AutoAim = false
  229.                 warn("[ScapAssist] AutoAim set to: false")
  230.             else
  231.                 AutoAim = true
  232.                 warn("[ScapAssist] AutoAim set to: true")
  233.             end
  234.         elseif key.KeyCode == Enum.KeyCode[ChamSwitch] then
  235.             if Chams == true then
  236.                 Chams = false
  237.                 warn("[ScapAssist] Chams set to: false")
  238.             else
  239.                 Chams = true
  240.                 warn("[ScapAssist] Chams set to: true")
  241.             end
  242.         end
  243.     end
  244. end)
  245.  
  246. Mouse.Button2Down:connect(function()
  247.     MouseDown = true
  248. end)
  249.  
  250. Mouse.Button2Up:connect(function()
  251.     MouseDown = false
  252. end)
  253. --[End Aimbot Framework]--
  254.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement