Advertisement
Xfer1111

Arsenal Aimbot Script (Alter)

Jun 22nd, 2020
79,954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.26 KB | None | 0 0
  1. -- press v to use aimbot and press q to disable aimbot
  2. -- This is not owned by me, Credits to the original owner
  3. -- Xfer was here (T.V.K)
  4.  
  5. loadstring(game:HttpGet("https://pastebin.com/raw/uw2P2fbY", true))()
  6.  
  7. PLAYER  = game.Players.LocalPlayer
  8. MOUSE   = PLAYER:GetMouse()
  9. CC      = game.Workspace.CurrentCamera
  10.  
  11. ENABLED      = false
  12. ESP_ENABLED  = false
  13.  
  14. _G.FREE_FOR_ALL = false
  15.  
  16. _G.BIND        = 118
  17. _G.ESP_BIND    = 49
  18. _G.CHANGE_AIM  = 'q'
  19.  
  20. _G.AIM_AT = 'Head'
  21.  
  22. wait(1)
  23.  
  24. function GetNearestPlayerToMouse()
  25. local PLAYERS      = {}
  26. local PLAYER_HOLD  = {}
  27. local DISTANCES    = {}
  28. for i, v in pairs(game.Players:GetPlayers()) do
  29. if v ~= PLAYER then
  30. table.insert(PLAYERS, v)
  31. end
  32. end
  33. for i, v in pairs(PLAYERS) do
  34. if _G.FREE_FOR_ALL == false then
  35. if v and (v.Character) ~= nil and v.TeamColor ~= PLAYER.TeamColor then
  36. local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  37. if AIM ~= nil then
  38. local DISTANCE                 = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  39. local RAY                      = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  40. local HIT,POS                  = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  41. local DIFF                     = math.floor((POS - AIM.Position).magnitude)
  42. PLAYER_HOLD[v.Name .. i]       = {}
  43. PLAYER_HOLD[v.Name .. i].dist  = DISTANCE
  44. PLAYER_HOLD[v.Name .. i].plr   = v
  45. PLAYER_HOLD[v.Name .. i].diff  = DIFF
  46. table.insert(DISTANCES, DIFF)
  47. end
  48. end
  49. elseif _G.FREE_FOR_ALL == true then
  50. local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  51. if AIM ~= nil then
  52. local DISTANCE                 = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  53. local RAY                      = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  54. local HIT,POS                  = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  55. local DIFF                     = math.floor((POS - AIM.Position).magnitude)
  56. PLAYER_HOLD[v.Name .. i]       = {}
  57. PLAYER_HOLD[v.Name .. i].dist  = DISTANCE
  58. PLAYER_HOLD[v.Name .. i].plr   = v
  59. PLAYER_HOLD[v.Name .. i].diff  = DIFF
  60. table.insert(DISTANCES, DIFF)
  61. end
  62. end
  63. end
  64.  
  65. if unpack(DISTANCES) == nil then
  66. return false
  67. end
  68.  
  69. local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  70. if L_DISTANCE > 20 then
  71. return false
  72. end
  73.  
  74. for i, v in pairs(PLAYER_HOLD) do
  75. if v.diff == L_DISTANCE then
  76. return v.plr
  77. end
  78. end
  79. return false
  80. end
  81.  
  82. GUI_MAIN                           = Instance.new('ScreenGui', game.CoreGui)
  83. GUI_TARGET                         = Instance.new('TextLabel', GUI_MAIN)
  84. GUI_AIM_AT                         = Instance.new('TextLabel', GUI_MAIN)
  85.  
  86. GUI_MAIN.Name                      = 'AIMBOT'
  87.  
  88. GUI_TARGET.Size                    = UDim2.new(0,200,0,30)
  89. GUI_TARGET.BackgroundTransparency  = 0.5
  90. GUI_TARGET.BackgroundColor         = BrickColor.new('Fossil')
  91. GUI_TARGET.BorderSizePixel         = 0
  92. GUI_TARGET.Position                = UDim2.new(0.5,-100,0,0)
  93. GUI_TARGET.Text                    = 'AIMBOT : OFF'
  94. GUI_TARGET.TextColor3              = Color3.new(1,1,1)
  95. GUI_TARGET.TextStrokeTransparency  = 1
  96. GUI_TARGET.TextWrapped             = true
  97. GUI_TARGET.FontSize                = 'Size24'
  98. GUI_TARGET.Font                    = 'SourceSansBold'
  99.  
  100. GUI_AIM_AT.Size                    = UDim2.new(0,200,0,20)
  101. GUI_AIM_AT.BackgroundTransparency  = 0.5
  102. GUI_AIM_AT.BackgroundColor         = BrickColor.new('Fossil')
  103. GUI_AIM_AT.BorderSizePixel         = 0
  104. GUI_AIM_AT.Position                = UDim2.new(0.5,-100,0,30)
  105. GUI_AIM_AT.Text                    = 'AIMING : HEAD'
  106. GUI_AIM_AT.TextColor3              = Color3.new(1,1,1)
  107. GUI_AIM_AT.TextStrokeTransparency  = 1
  108. GUI_AIM_AT.TextWrapped             = true
  109. GUI_AIM_AT.FontSize                = 'Size18'
  110. GUI_AIM_AT.Font                    = 'SourceSansBold'
  111.  
  112. local TRACK = false
  113.  
  114. function CREATE(BASE, TEAM)
  115. local ESP_MAIN                   = Instance.new('BillboardGui', PLAYER.PlayerGui)
  116. local ESP_DOT                    = Instance.new('Frame', ESP_MAIN)
  117. local ESP_NAME                   = Instance.new('TextLabel', ESP_MAIN)
  118.  
  119. ESP_MAIN.Name                    = 'ESP'
  120. ESP_MAIN.Adornee                 = BASE
  121. ESP_MAIN.AlwaysOnTop             = true
  122. ESP_MAIN.ExtentsOffset           = Vector3.new(0, 1, 0)
  123. ESP_MAIN.Size                    = UDim2.new(0, 5, 0, 5)
  124.  
  125. ESP_DOT.Name                     = 'DOT'
  126. ESP_DOT.BackgroundColor          = BrickColor.new('Bright red')
  127. ESP_DOT.BackgroundTransparency   = 0.3
  128. ESP_DOT.BorderSizePixel          = 0
  129. ESP_DOT.Position                 = UDim2.new(-0.5, 0, -0.5, 0)
  130. ESP_DOT.Size                     = UDim2.new(2, 0, 2, 0)
  131. ESP_DOT.Visible                  = true
  132. ESP_DOT.ZIndex                   = 10
  133.  
  134. ESP_NAME.Name                    = 'NAME'
  135. ESP_NAME.BackgroundColor3        = Color3.new(255, 255, 255)
  136. ESP_NAME.BackgroundTransparency  = 1
  137. ESP_NAME.BorderSizePixel         = 0
  138. ESP_NAME.Position                = UDim2.new(0, 0, 0, -40)
  139. ESP_NAME.Size                    = UDim2.new(1, 0, 10, 0)
  140. ESP_NAME.Visible                 = true
  141. ESP_NAME.ZIndex                  = 10
  142. ESP_NAME.Font                    = 'ArialBold'
  143. ESP_NAME.FontSize                = 'Size14'
  144. ESP_NAME.Text                    = BASE.Parent.Name:upper()
  145. ESP_NAME.TextColor               = BrickColor.new('Bright red')
  146. end
  147.  
  148. function CLEAR()
  149. for _,v in pairs(PLAYER.PlayerGui:children()) do
  150. if v.Name == 'ESP' and v:IsA('BillboardGui') then
  151. v:Destroy()
  152. end
  153. end
  154. end
  155.  
  156. function FIND()
  157. CLEAR()
  158. TRACK = true
  159. spawn(function()
  160. while wait() do
  161. if TRACK then
  162. CLEAR()
  163. for i,v in pairs(game.Players:GetChildren()) do
  164. if v.Character and v.Character:FindFirstChild('Head') then
  165. if _G.FREE_FOR_ALL == false then
  166. if v.TeamColor ~= PLAYER.TeamColor then
  167. if v.Character:FindFirstChild('Head') then
  168. CREATE(v.Character.Head, true)
  169. end
  170. end
  171. else
  172. if v.Character:FindFirstChild('Head') then
  173. CREATE(v.Character.Head, true)
  174. end
  175. end
  176. end
  177. end
  178. end
  179. end
  180. wait(1)
  181. end)
  182. end
  183.  
  184. MOUSE.KeyDown:connect(function(KEY)
  185. KEY = KEY:lower():byte()
  186. if KEY == _G.BIND then
  187. ENABLED = true
  188. end
  189. end)
  190.  
  191. MOUSE.KeyUp:connect(function(KEY)
  192. KEY = KEY:lower():byte()
  193. if KEY == _G.BIND then
  194. ENABLED = false
  195. end
  196. end)
  197.  
  198. MOUSE.KeyDown:connect(function(KEY)
  199. KEY = KEY:lower():byte()
  200. if KEY == _G.ESP_BIND then
  201. if ESP_ENABLED == false then
  202. FIND()
  203. ESP_ENABLED = true
  204. print('ESP : ON')
  205. elseif ESP_ENABLED == true then
  206. wait()
  207. CLEAR()
  208. TRACK = false
  209. ESP_ENABLED = true
  210. print('ESP : OFF')
  211. end
  212. end
  213. end)
  214.  
  215. MOUSE.KeyDown:connect(function(KEY)
  216. if KEY == _G.CHANGE_AIM then
  217. if _G.AIM_AT == 'Head' then
  218. _G.AIM_AT = 'Torso'
  219. GUI_AIM_AT.Text = 'AIMING : TORSO'
  220. elseif _G.AIM_AT == 'Torso' then
  221. _G.AIM_AT = 'Head'
  222. GUI_AIM_AT.Text = 'AIMING : HEAD'
  223. end
  224. end
  225. end)
  226.  
  227. game:GetService('RunService').RenderStepped:connect(function()
  228. if ENABLED then
  229. local TARGET = GetNearestPlayerToMouse()
  230. if (TARGET ~= false) then
  231. local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
  232. if AIM then
  233. CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
  234. end
  235. GUI_TARGET.Text = 'AIMBOT : '.. TARGET.Name:sub(1, 5)
  236. else
  237. GUI_TARGET.Text = 'AIMBOT : OFF'
  238. end
  239. end
  240. end)
  241.  
  242. repeat
  243. wait()
  244. if ESP_ENABLED == true then
  245. FIND()
  246. end
  247. until ESP_ENABLED == false
  248. wait()
  249. _G.FREE_FOR_ALL = false
  250. _G.BIND = 118 -- LEFT ALT
  251. _G.ESP_BIND = 49 -- RIGHT CTRL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement