WorldOfOutlaws

Anarchy GUI ROBLOX

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