Advertisement
Guest User

HCBB 9v9

a guest
Mar 4th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 4.35 KB | None | 0 0
  1. --Aimbot Options
  2. local AimbotEnabled=true
  3. local NoKillList={Sutic=true,LolUrGarbage=true,Flawless_Nick=true}
  4. local AimBotting=true
  5. local AimAtTorso=false
  6. local AimbotIgnoreWalls=true
  7. local AimbotTeamCheck=false
  8. local AimbotFriendCheck=true
  9. local AimAhead=false--WIP. For games like Anarchy (Cannonical's).
  10.  
  11. local currchar
  12.  
  13. local uis = game:GetService("UserInputService")
  14.  
  15. function SetHatTrans(trans)
  16. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren())do
  17. if v and v:IsA("Accessory")then
  18. v.Handle.LocalTransparencyModifier = trans
  19. end
  20. end
  21. end
  22.  
  23. --aimbot
  24. do
  25. if AimbotEnabled then
  26. spawn(function()
  27.  
  28.  
  29. print("Loading AimBot 1.0")
  30.  
  31.  
  32.  
  33. local cast=workspace.FindPartOnRayWithIgnoreList
  34. local ray=Ray.new
  35. local MAX_ITERATIONS=30
  36. local function PiercingCast(p0,p1,ignore)
  37. local Part
  38. local i=0
  39. repeat
  40. i=i+1
  41. local cond=(p1-p0).magnitude<999
  42. Part,p0=cast(workspace,ray(p0,cond and p1-p0 or (p1-p0).unit*999),ignore)
  43. if Part then
  44. if Part.CanCollide==false or Part.Transparency==1 then
  45. ignore[#ignore+1]=Part
  46. Part=nil
  47. end
  48. elseif cond or i>MAX_ITERATIONS then
  49. break
  50. end
  51. until Part
  52. return Part,p0
  53. end
  54.  
  55. local Camera=workspace.CurrentCamera
  56. local Player=game.Players.LocalPlayer
  57. local ptor=Player.Character.Torso
  58. local canaim=true
  59. local dist=0
  60. game:GetService("RunService").RenderStepped:connect(function()
  61. if canaim then
  62. if AimBotting or AutoAimBot then
  63. local p=game.Players:GetPlayers()
  64. local d,t=-1
  65. local c=Camera.CoordinateFrame
  66. local tor
  67. local enemyplr
  68. local char
  69. for i=1,#p do
  70. local ch=p[i].Character
  71. if p[i]~=Player
  72. and ch:FindFirstChild("Humanoid")
  73. and ch:FindFirstChild("Torso")
  74. and ch.Humanoid.Health>0
  75. and not (AimbotTeamCheck and Player.TeamColor==p[i].TeamColor or NoKillList[p[i].Name]) then
  76. local tp=AimAtTorso and ch.Torso.Position or ch.Torso.CFrame*Vector3.new(0,1.5,0)
  77. local HitPart=PiercingCast(c.p,tp,{Camera,Player.Character})
  78. if not (AimbotIgnoreWalls and HitPart) or ch:IsAncestorOf(HitPart) then
  79. local m=(tp-c.p).unitBig Grinot(c.lookVector)
  80. if m==m and m>d then
  81. d,t=m,tp
  82. tor=ch.Torso
  83. char=ch
  84. enemyplr=p[i]
  85. currchar=ch
  86.  
  87. end
  88. end
  89. end
  90. end
  91. if t then
  92. -- local vel=(cf(tor.CFrame)):inverse()*(tor.Position+tor.Velocity)
  93. --local offset=((Vector3.new((vel.x/10),0,math.min(math.max((vel.z/10),-1),1))))
  94. if AimbotFriendCheck and Player:IsFriendsWith(enemyplr.UserId) then
  95.  
  96. else
  97. if AimbotEnabled then
  98. local mult=char.Humanoid:GetState()==Enum.HumanoidStateType.Seated and 6 or 5.25
  99. local mult2=char.Humanoid:GetState()==Enum.HumanoidStateType.Seated and 2 or 1
  100. local aheadoffset=((tor.Velocity)).unit*(mult)*mult2--((tor.Velocity*50)).unit*mult
  101. --aheadoffset=AimAhead and aheadoffset or Vector3.new(0,0,0)
  102. if AimAhead and (tor.Velocity*Vector3.new(1,0,1)).magnitude>0.1 then
  103. Camera.CoordinateFrame=CFrame.new(Camera.Focus.p,t+aheadoffset)*CFrame.new(0,0,0.5)
  104. else
  105. Camera.CoordinateFrame=CFrame.new(Camera.Focus.p,t)*CFrame.new(0,0,0.5)
  106. end
  107. dist=((tor.CFrame.p-ptor.CFrame.p).magnitude)
  108. end
  109. end
  110. end
  111. SetHatTrans(1)
  112. uis.MouseBehavior = "LockCenter"
  113. else
  114. SetHatTrans(0)
  115. --uis.MouseBehavior = "Default"
  116. end
  117. end
  118. end)
  119.  
  120. local Hint=Camera:FindFirstChild("Message") or Instance.new("Hint",Camera)
  121.  
  122. local m=Player:GetMouse()
  123. m.Button2Down:connect(function()
  124. AimBotting=true
  125. print("AimBotting")
  126. end)
  127. m.Button2Up:connect(function()
  128. AimBotting=false
  129. print("Idle")
  130. end)
  131.  
  132. m.KeyDown:connect(function(k)
  133. if not canaim then return end
  134. if k=="b" then
  135. AimAtTorso=not AimAtTorso
  136. print("Aiming for:",AimAtTorso and "Torso" or "Head")
  137. elseif k=="n" then
  138. AimbotIgnoreWalls=not AimbotIgnoreWalls
  139. print("RayCastCheck:",AimbotIgnoreWalls)
  140. elseif k=="m" then
  141. AimbotTeamCheck=not AimbotTeamCheck
  142. print("AimbotTeamCheck:",AimbotTeamCheck)
  143. elseif k=="k" then
  144. AutoAimBot=not AutoAimBot
  145. print("AutoAimBot:",AutoAimBot)
  146. elseif k=="h" and Player.Character:FindFirstChild("Humanoid") then
  147. local h=Player.Character.Humanoid
  148. h.Health=h.MaxHealth
  149. elseif k:lower()=='p'then
  150. canaim=false
  151. dist=0
  152. scriptBig Grinestroy()
  153. script.Disabled=true
  154. elseif k:lower()=='f'then
  155. AimbotFriendCheck=not AimbotFriendCheck
  156. elseif k:lower()=='j'then
  157. AimAhead=not AimAhead
  158. elseif k:lower()=='z'then
  159. canaim=not canaim
  160. end
  161. Hint.Parent=Camera
  162. Hint.Text="Aiming part: "..(AimAtTorso and "Torso" or "Head").." RayCastCheck: "..tostring(AimbotIgnoreWalls).." AimbotTeamCheck: "..tostring(AimbotTeamCheck).." AutoAimBot: "..tostring(AutoAimBot)..' Friend Check: '..tostring(AimbotFriendCheck)..' Aim Ahead: '..tostring(AimAhead)..' Dist: '..tostring(dist)
  163. end)
  164.  
  165. print("Loaded AimBot 1.0")
  166.  
  167. return true
  168. end)
  169. end
  170. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement