Advertisement
SlyHades66

Aimbot

Sep 14th, 2016
1,872
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.97 KB | None | 0 0
  1. ContextAction = game:GetService("ContextActionService")
  2.  
  3.  
  4.  
  5. _G.NoKillList={}
  6.  
  7. _G.AimBotting=false
  8.  
  9. _G.AimAtTorso=false
  10.  
  11. _G.AimAtMurderer=false
  12.  
  13. _G.RayCasting=true
  14.  
  15. _G.TeamCheck=true
  16.  
  17. _G.AimAtSheriff = false
  18.  
  19. _G.clickLagSwitch = false
  20.  
  21. _G.cast=workspace.FindPartOnRayWithIgnoreList
  22.  
  23. _G.ray=Ray.new
  24.  
  25. _G.MAX_ITERATIONS=25
  26.  
  27. local function PiercingCast(p0,p1,ignore)
  28.  
  29.     local Part
  30.  
  31.     local i=0
  32.  
  33.     repeat
  34.  
  35.         i=i+1
  36.  
  37.         local cond=(p1-p0).magnitude<999
  38.  
  39.         Part,p0=_G.cast(workspace,_G.ray(p0,cond and p1-p0 or (p1-p0).unit*999),ignore)
  40.  
  41.         if Part then
  42.  
  43.             if Part.CanCollide==false or Part.Transparency==1 then
  44.  
  45.                 ignore[#ignore+1]=Part
  46.  
  47.                 Part=nil
  48.  
  49.             end
  50.  
  51.         elseif cond or i>_G.MAX_ITERATIONS then
  52.  
  53.             break
  54.  
  55.         end
  56.  
  57.     until Part
  58.  
  59.     return Part,p0
  60.  
  61. end
  62.  
  63.  
  64.  
  65. local Camera=Workspace.CurrentCamera
  66.  
  67. local Player=game.Players.LocalPlayer
  68.  
  69. game:GetService("RunService").RenderStepped:connect(function()
  70.  
  71. if game.PlaceId == 186976759 then
  72.  
  73. if game.Workspace.Camera:FindFirstChild("PlayerInfoModel") then
  74.  
  75. for i, c in pairs (game.Players:GetChildren()) do
  76.  
  77. if c:FindFirstChild("ProByGod") then
  78.  
  79. c.ProByGod:Remove()
  80.  
  81. end
  82.  
  83. end
  84.  
  85. for i, v in pairs (game.Workspace.Camera.PlayerInfoModel:GetChildren()) do
  86.  
  87. if v.Name == "Friend" then
  88.  
  89. for i, w in pairs (game.Players:GetChildren()) do
  90.  
  91. if w.Name == v.Main.Data.Nickname.Text then
  92.  
  93. if not w:FindFirstChild("ProByGod") then
  94.  
  95. thyGodlyPro = Instance.new("StringValue", w)
  96.  
  97. thyGodlyPro.Name = "ProByGod"
  98.  
  99. end
  100.  
  101. end
  102.  
  103. end
  104.  
  105. end
  106.  
  107. end
  108.  
  109. end
  110.  
  111.  
  112.  
  113. if game.Workspace:FindFirstChild("Camera") then
  114.  
  115. if game.Workspace.Camera.FieldOfView ~= 100 then
  116.  
  117. game.Workspace.Camera.FieldOfView = 100
  118.  
  119. end
  120.  
  121. end
  122.  
  123. wait(0.1)
  124.  
  125. if game.Players.LocalPlayer.Character.WalkSpeedMaster.Disabled == false then
  126.  
  127. game.Players.LocalPlayer.Character.WalkSpeedMaster.Disabled = true
  128.  
  129. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 12
  130.  
  131. end
  132.  
  133. wait(0.1)
  134.  
  135. if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 0 then
  136.  
  137. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 12
  138.  
  139. end
  140.  
  141. if game.CoreGui:FindFirstChild("HUD") then
  142.  
  143. if game.CoreGui.HUD.Type1.Scoping.B4.Transparency ~= 1 or game.CoreGui.HUD.Type1.Scoping.B1.Visible == true then
  144.  
  145. game.CoreGui.HUD.Type1.Scoping.B1.Transparency = 1
  146.  
  147. game.CoreGui.HUD.Type1.Scoping.B1.Visible = false
  148.  
  149. game.CoreGui.HUD.Type1.Scoping.B2.Transparency = 1
  150.  
  151. game.CoreGui.HUD.Type1.Scoping.B2.Visible = false
  152.  
  153. game.CoreGui.HUD.Type1.Scoping.B3.Transparency = 1
  154.  
  155. game.CoreGui.HUD.Type1.Scoping.B3.Visible = false
  156.  
  157. game.CoreGui.HUD.Type1.Scoping.B4.Transparency = 1
  158.  
  159. game.CoreGui.HUD.Type1.Scoping.B4.Visible = false
  160.  
  161. end
  162.  
  163. end
  164.  
  165. end
  166.  
  167.     if _G.AimBotting or AutoAimBot then
  168.  
  169.         local p=game.Players:GetPlayers()
  170.  
  171.         local d,t=-1
  172.  
  173.         local c=Camera.CoordinateFrame
  174.  
  175.         for i=1,#p do
  176.  
  177.             local ch=p[i].Character
  178.  
  179.             if p[i]~=Player
  180.  
  181.             and ch:FindFirstChild("Humanoid")
  182.  
  183.             and ch:FindFirstChild("Torso")
  184.  
  185.             and ch.Humanoid.Health>0
  186.  
  187.             and not (_G.TeamCheck and Player.TeamColor==p[i].TeamColor or _G.NoKillList[p[i].Name] or ch:FindFirstChild'ForceField') then
  188.  
  189.                 local tp=_G.AimAtTorso and ch.Torso.Position or ch.Torso.CFrame*Vector3.new(0,1.5,0)
  190.  
  191.                 local HitPart=PiercingCast(c.p,tp,{Camera,Player.Character})
  192.  
  193.                 if not (_G.RayCasting and HitPart) or ch:IsAncestorOf(HitPart) then
  194.  
  195.                 if _G.AimAtMurderer == true and p[i].Backpack:FindFirstChild("Knife") and not p[i]:FindFirstChild("ProByGod") then
  196.  
  197.                     local m=(tp-c.p).unit:Dot(c.lookVector)
  198.  
  199.                     if m==m and m>d then
  200.  
  201.                         d,t=m,tp
  202.  
  203.                     end
  204.  
  205.                 elseif _G.AimAtMurderer == true and ch:FindFirstChild("Knife") and not p[i]:FindFirstChild("ProByGod") then
  206.  
  207.                     local m=(tp-c.p).unit:Dot(c.lookVector)
  208.  
  209.                     if m==m and m>d then
  210.  
  211.                         d,t=m,tp
  212.  
  213.                     end
  214.  
  215.                 elseif _G.AimAtSheriff == true and p[i].Backpack:FindFirstChild("Gun") and not p[i]:FindFirstChild("ProByGod") then
  216.  
  217.                     local m=(tp-c.p).unit:Dot(c.lookVector)
  218.  
  219.                     if m==m and m>d then
  220.  
  221.                         d,t=m,tp
  222.  
  223.                     end
  224.  
  225.                 elseif _G.AimAtSheriff == true and ch:FindFirstChild("Gun") and not p[i]:FindFirstChild("ProByGod") then
  226.  
  227.                     local m=(tp-c.p).unit:Dot(c.lookVector)
  228.  
  229.                     if m==m and m>d then
  230.  
  231.                         d,t=m,tp
  232.  
  233.                     end
  234.  
  235.                 elseif _G.AimAtSheriff == true and p[i].Backpack:FindFirstChild("Revolver") and not p[i]:FindFirstChild("ProByGod") then
  236.  
  237.                     local m=(tp-c.p).unit:Dot(c.lookVector)
  238.  
  239.                     if m==m and m>d then
  240.  
  241.                         d,t=m,tp
  242.  
  243.                     end
  244.  
  245.                 elseif _G.AimAtSheriff == true and ch:FindFirstChild("Revolver") and not p[i]:FindFirstChild("ProByGod") then
  246.  
  247.                     local m=(tp-c.p).unit:Dot(c.lookVector)
  248.  
  249.                     if m==m and m>d then
  250.  
  251.                         d,t=m,tp
  252.  
  253.                     end
  254.  
  255.                 elseif _G.AimAtMurderer == false and _G.AimAtSheriff == false and not p[i]:FindFirstChild("ProByGod") then
  256.  
  257.                     local m=(tp-c.p).unit:Dot(c.lookVector)
  258.  
  259.                     if m==m and m>d then
  260.  
  261.                         d,t=m,tp
  262.  
  263.                     end
  264.  
  265.                 end
  266.  
  267.                 end
  268.  
  269.             end
  270.  
  271.         end
  272.  
  273.         if t then
  274.  
  275.         Camera.CoordinateFrame=CFrame.new(Camera.Focus.p,t)*CFrame.new(0,0,0.5)
  276.  
  277.         end
  278.  
  279.     end
  280.  
  281. end)
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289. myAimbot = game.CoreGui.RobloxGui
  290.  
  291. _G.myAimbot = myAimbot
  292.  
  293. myAimbotMessage = Instance.new("Hint", myAimbot)
  294.  
  295. _G.myAimbotMessage = myAimbotMessage
  296.  
  297. myAimbotMessage.Name = "$*&*#&*($(*()))"
  298.  
  299. myAimbotMessage.Text="Aiming for: "..(_G.AimAtTorso and "Torso" or "Head").." | RayCastCheck: "..tostring(_G.RayCasting).." | TeamCheck: "..tostring(_G.TeamCheck).." | AutoAimBot: "..tostring(AutoAimBot).." | Aim at Murderer: "..tostring(_G.AimAtMurderer).." | Aim at Sheriff: "..tostring(_G.AimAtSheriff)
  300.  
  301.  
  302.  
  303. local m=game.Players.LocalPlayer:GetMouse()
  304.  
  305.  
  306.  
  307. m.Button2Down:connect(function()
  308.  
  309. _G.AimBotting=true
  310.  
  311. end)
  312.  
  313.  
  314.  
  315. m.Button2Up:connect(function()
  316.  
  317. _G.AimBotting=false
  318.  
  319. end)
  320.  
  321.  
  322.  
  323.  
  324.  
  325. ContextAction:BindAction("torso", function(_, ImputState)
  326.  
  327. if ImputState == Enum.UserInputState.End then
  328.  
  329. _G.AimAtTorso=not _G.AimAtTorso
  330.  
  331. _G.myAimbotMessage.Text="Aiming for: "..(_G.AimAtTorso and "Torso" or "Head").." | RayCastCheck: "..tostring(_G.RayCasting).." | TeamCheck: "..tostring(_G.TeamCheck).." | AutoAimBot: "..tostring(AutoAimBot).." | Aim at Murderer: "..tostring(_G.AimAtMurderer).." | Aim at Sheriff: "..tostring(_G.AimAtSheriff)
  332.  
  333. end
  334.  
  335. end, false, Enum.KeyCode.P)
  336.  
  337.  
  338.  
  339. ContextAction:BindAction("raycast", function(_, ImputState)
  340.  
  341. if ImputState == Enum.UserInputState.End then
  342.  
  343. _G.RayCasting=not _G.RayCasting
  344.  
  345. _G.myAimbotMessage.Text="Aiming for: "..(_G.AimAtTorso and "Torso" or "Head").." | RayCastCheck: "..tostring(_G.RayCasting).." | TeamCheck: "..tostring(_G.TeamCheck).." | AutoAimBot: "..tostring(AutoAimBot).." | Aim at Murderer: "..tostring(_G.AimAtMurderer).." | Aim at Sheriff: "..tostring(_G.AimAtSheriff)
  346.  
  347. end
  348.  
  349. end, false, Enum.KeyCode.Q)
  350.  
  351.  
  352.  
  353. ContextAction:BindAction("_G.TeamCheck", function(_, ImputState)
  354.  
  355. if ImputState == Enum.UserInputState.End then
  356.  
  357. _G.TeamCheck=not _G.TeamCheck
  358.  
  359. _G.myAimbotMessage.Text="Aiming for: "..(_G.AimAtTorso and "Torso" or "Head").." | RayCastCheck: "..tostring(_G.RayCasting).." | TeamCheck: "..tostring(_G.TeamCheck).." | AutoAimBot: "..tostring(AutoAimBot).." | Aim at Murderer: "..tostring(_G.AimAtMurderer).." | Aim at Sheriff: "..tostring(_G.AimAtSheriff)
  360.  
  361. end
  362.  
  363. end, false, Enum.KeyCode.M)
  364.  
  365.  
  366.  
  367. ContextAction:BindAction("hidedddd", function(_, ImputState)
  368.  
  369. if ImputState == Enum.UserInputState.End then
  370.  
  371. if _G.myAimbotMessage.Parent == _G.myAimbot then
  372.  
  373. _G.myAimbotMessage.Parent = game.Geometry
  374.  
  375. else
  376.  
  377. _G.myAimbotMessage.Parent = _G.myAimbot
  378.  
  379. end
  380.  
  381. end
  382.  
  383. end, false, Enum.KeyCode.Home)
  384.  
  385.  
  386.  
  387. ContextAction:BindAction("autoaim", function(_, ImputState)
  388.  
  389. if ImputState == Enum.UserInputState.End then
  390.  
  391. AutoAimBot=not AutoAimBot
  392.  
  393. _G.myAimbotMessage.Text="Aiming for: "..(_G.AimAtTorso and "Torso" or "Head").." | RayCastCheck: "..tostring(_G.RayCasting).." | TeamCheck: "..tostring(_G.TeamCheck).." | AutoAimBot: "..tostring(AutoAimBot).." | Aim at Murderer: "..tostring(_G.AimAtMurderer).." | Aim at Sheriff: "..tostring(_G.AimAtSheriff)
  394.  
  395. end
  396.  
  397. end, false, Enum.KeyCode.K)
  398.  
  399.  
  400.  
  401.  
  402.  
  403. ContextAction:BindAction("murderaim", function(_, ImputState)
  404.  
  405. if ImputState == Enum.UserInputState.End then
  406.  
  407. _G.AimAtMurderer=not _G.AimAtMurderer
  408.  
  409. _G.myAimbotMessage.Text="Aiming for: "..(_G.AimAtTorso and "Torso" or "Head").." | RayCastCheck: "..tostring(_G.RayCasting).." | TeamCheck: "..tostring(_G.TeamCheck).." | AutoAimBot: "..tostring(AutoAimBot).." | Aim at Murderer: "..tostring(_G.AimAtMurderer).." | Aim at Sheriff: "..tostring(_G.AimAtSheriff)
  410.  
  411. end
  412.  
  413. end, false, Enum.KeyCode.V)
  414.  
  415.  
  416.  
  417. ContextAction:BindAction("sherrifaim", function(_, ImputState)
  418.  
  419. if ImputState == Enum.UserInputState.End then
  420.  
  421. _G.AimAtSheriff=not _G.AimAtSheriff
  422.  
  423. _G.myAimbotMessage.Text="Aiming for: "..(_G.AimAtTorso and "Torso" or "Head").." | RayCastCheck: "..tostring(_G.RayCasting).." | TeamCheck: "..tostring(_G.TeamCheck).." | AutoAimBot: "..tostring(AutoAimBot).." | Aim at Murderer: "..tostring(_G.AimAtMurderer).." | Aim at Sheriff: "..tostring(_G.AimAtSheriff)
  424.  
  425. end
  426.  
  427. end, false, Enum.KeyCode.C)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement