ARSENAL - AIMBOT / ESP - Pastebin.com (2024)

  1. local plrs = game:GetService("Players")

  2. local TeamBased = true ; local teambasedswitch = "o"

  3. local presskeytoaim = true; local aimkey = "e"

  4. local raycast = false

  5. local espupdatetime = 5; autoesp = false

  6. local lockaim = true; local lockangle = 5

  7. --function findwat(folder, what)

  8. -- for i, smth in pairs(folder:GetChildren()) do

  9. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then

  10. -- return smth

  11. -- end

  12. -- end

  13. --end

  14. --

  15. --local plrs = findwat(game, "Players")

  16. local Gui = Instance.new("ScreenGui")

  17. local Move = Instance.new("Frame")

  18. local Main = Instance.new("Frame")

  19. local EspStatus = Instance.new("TextLabel")

  20. local st1 = Instance.new("TextLabel")

  21. local st1_2 = Instance.new("TextLabel")

  22. local st1_3 = Instance.new("TextLabel")

  23. local Name = Instance.new("TextLabel")

  24. --Properties:

  25. Gui.Name = "Gui"

  26. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")

  27. Move.Name = "Move"

  28. Move.Parent = Gui

  29. Move.BackgroundColor3 = Color3.new(0.545098, 0, 0)

  30. Move.BackgroundTransparency = 1

  31. Move.BorderSizePixel = 0

  32. Move.Draggable = true

  33. Move.Position = UDim2.new(0.005, 0, -0.15, 0)

  34. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)

  35. Main.Name = "Main"

  36. Main.Parent = Move

  37. Main.BackgroundColor3 = Color3.new(1, 1, 1)

  38. Main.Position = UDim2.new(0, -7, 20.9960003, 0)

  39. Main.Size = UDim2.new(1, 0, 5.79699993, 0)

  40. Main.Style = Enum.FrameStyle.RobloxSquare

  41. EspStatus.Name = "EspStatus"

  42. EspStatus.Parent = Main

  43. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)

  44. EspStatus.BackgroundTransparency = 1

  45. EspStatus.Position = UDim2.new(0, 0, 0.300000012, 0)

  46. EspStatus.Size = UDim2.new(1, 0, 0.162, 0)

  47. EspStatus.Font = Enum.Font.ArialBold

  48. EspStatus.Text = "Press O to change team based mode"

  49. EspStatus.TextColor3 = Color3.new(0.6, 0.196078, 0.8)

  50. EspStatus.TextScaled = true

  51. EspStatus.TextWrapped = true

  52. st1.Name = "st1"

  53. st1.Parent = Main

  54. st1.BackgroundColor3 = Color3.new(1, 1, 1)

  55. st1.BackgroundTransparency = 1

  56. st1.Position = UDim2.new(0.271787882, 0, 0, 0)

  57. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)

  58. st1.Font = Enum.Font.ArialBold

  59. st1.Text = ""

  60. st1.TextColor3 = Color3.new(0.0784314, 0.541176, 0)

  61. st1.TextScaled = true

  62. st1.TextSize = 14

  63. st1.TextWrapped = true

  64. st1_2.Name = "st1"

  65. st1_2.Parent = Main

  66. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)

  67. st1_2.BackgroundTransparency = 1

  68. st1_2.Position = UDim2.new(0, 0, 0.875999987, 0)

  69. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)

  70. st1_2.Font = Enum.Font.ArialBold

  71. st1_2.Text = "Press E to lock on a person inside ur view"

  72. st1_2.TextColor3 = Color3.new(0.6, 0.196078, 0.8)

  73. st1_2.TextScaled = true

  74. st1_2.TextWrapped = true

  75. st1_3.Name = "st1"

  76. st1_3.Parent = Main

  77. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)

  78. st1_3.BackgroundTransparency = 1

  79. st1_3.Position = UDim2.new(0, 0, 0.54, 0)

  80. st1_3.Size = UDim2.new(1, 0, 0.261999995, 0)

  81. st1_3.Font = Enum.Font.ArialBold

  82. st1_3.Text = "Press L to enable esp loop and press T to update esp"

  83. st1_3.TextColor3 = Color3.new(0.6, 0.196078, 0.8)

  84. st1_3.TextScaled = true

  85. st1_3.TextWrapped = true

  86. Name.Name = "Name"

  87. Name.Parent = Move

  88. Name.BackgroundColor3 = Color3.new(0.545098, 0, 0)

  89. Name.BackgroundTransparency = 1

  90. Name.Position = UDim2.new(0, 25, 20.9860001, 0)

  91. Name.Size = UDim2.new(0.838, 0, 1.27999997, 0)

  92. Name.Font = Enum.Font.Arcade

  93. Name.Text = "ARSENAL GUI"

  94. Name.TextColor3 = Color3.new(0.541176, 0.168627, 0.886275)

  95. Name.TextScaled = true

  96. Name.TextSize = 12

  97. Name.TextWrapped = true

  98. -- Scripts:

  99. local plrsforaim = {}

  100. local lplr = game:GetService("Players").LocalPlayer

  101. Move.Draggable = true

  102. Gui.ResetOnSpawn = false

  103. Gui.Name = "Chat"

  104. Gui.DisplayOrder = 999

  105. Gui.Parent = plrs.LocalPlayer.PlayerGui

  106. f = {}

  107. local espforlder

  108. f.addesp = function()

  109. --print("ESP ran")

  110. if espforlder then

  111. else

  112. espforlder = Instance.new("Folder")

  113. espforlder.Parent = game.Workspace.CurrentCamera

  114. end

  115. for i, v in pairs(espforlder:GetChildren()) do

  116. v:Destroy()

  117. end

  118. for _, plr in pairs(plrs:GetChildren()) do

  119. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then

  120. if TeamBased == true then

  121. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then

  122. local e = espforlder:FindFirstChild(plr.Name)

  123. if not e then

  124. --print("Added esp for team based")

  125. local bill = Instance.new("BillboardGui", espforlder)

  126. bill.Name = plr.Name

  127. bill.AlwaysOnTop = true

  128. bill.Size = UDim2.new(1,0,1,0)

  129. bill.Adornee = plr.Character.Head

  130. local Frame = Instance.new('Frame',bill)

  131. Frame.Active = true

  132. Frame.BackgroundColor3 = Color3.new(1,0,0)

  133. Frame.BackgroundTransparency = 0

  134. Frame.BorderSizePixel = 0

  135. Frame.AnchorPoint = Vector2.new(.5, .5)

  136. Frame.Position = UDim2.new (0.5,0,0.5,0)

  137. Frame.Size = UDim2.new (1,0,1,0)

  138. Frame.Rotation = 0

  139. plr.Character.Humanoid.Died:Connect(function()

  140. bill:Destroy()

  141. end)

  142. end

  143. end

  144. else

  145. local e = espforlder:FindFirstChild(plr.Name)

  146. if not e then

  147. --print("Added esp")

  148. local bill = Instance.new("BillboardGui", espforlder)

  149. bill.Name = plr.Name

  150. bill.AlwaysOnTop = true

  151. bill.Size = UDim2.new(1,0,1,0)

  152. bill.Adornee = plr.Character.Head

  153. local Frame = Instance.new('Frame',bill)

  154. Frame.Active = true

  155. Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)

  156. Frame.BackgroundTransparency = 0

  157. Frame.BorderSizePixel = 0

  158. Frame.AnchorPoint = Vector2.new(.5, .5)

  159. Frame.Position = UDim2.new (0.5,0,0.5,0)

  160. Frame.Size = UDim2.new (1,0,1,0)

  161. Frame.Rotation = 0

  162. plr.Character.Humanoid.Died:Connect(function()

  163. bill:Destroy()

  164. end)

  165. end

  166. end

  167. end

  168. end

  169. end

  170. local cam = game.Workspace.CurrentCamera

  171. local mouse = lplr:GetMouse()

  172. local switch = false

  173. local key = "k"

  174. local aimatpart = nil

  175. mouse.KeyDown:Connect(function(a)

  176. if a == "t" then

  177. print("worked1")

  178. f.addesp()

  179. elseif a == "u" then

  180. if raycast == true then

  181. raycast = false

  182. else

  183. raycast = true

  184. end

  185. elseif a == "l" then

  186. if autoesp == false then

  187. autoesp = true

  188. else

  189. autoesp = false

  190. end

  191. end

  192. if a == "j" then

  193. if mouse.Target then

  194. mouse.Target:Destroy()

  195. end

  196. end

  197. if a == key then

  198. if switch == false then

  199. switch = true

  200. else

  201. switch = false

  202. if aimatpart ~= nil then

  203. aimatpart = nil

  204. end

  205. end

  206. elseif a == teambasedswitch then

  207. if TeamBased == true then

  208. TeamBased = false

  209. teambasedstatus.Text = tostring(TeamBased)

  210. else

  211. TeamBased = true

  212. teambasedstatus.Text = tostring(TeamBased)

  213. end

  214. elseif a == aimkey then

  215. if not aimatpart then

  216. local maxangle = math.rad(20)

  217. for i, plr in pairs(plrs:GetChildren()) do

  218. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then

  219. if TeamBased == true then

  220. if plr.Team.Name ~= lplr.Team.Name then

  221. local an = checkfov(plr.Character.Head)

  222. if an < maxangle then

  223. maxangle = an

  224. aimatpart = plr.Character.Head

  225. end

  226. end

  227. else

  228. local an = checkfov(plr.Character.Head)

  229. if an < maxangle then

  230. maxangle = an

  231. aimatpart = plr.Character.Head

  232. end

  233. print(plr)

  234. end

  235. plr.Character.Humanoid.Died:Connect(function()

  236. if aimatpart.Parent == plr.Character or aimatpart == nil then

  237. aimatpart = nil

  238. end

  239. end)

  240. end

  241. end

  242. else

  243. aimatpart = nil

  244. end

  245. end

  246. end)

  247. function getfovxyz (p0, p1, deg)

  248. local x1, y1, z1 = p0:ToOrientation()

  249. local cf = CFrame.new(p0.p, p1.p)

  250. local x2, y2, z2 = cf:ToOrientation()

  251. --local d = math.deg

  252. if deg then

  253. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))

  254. else

  255. return Vector3.new((x1-x2), (y1-y2), (z1-z2))

  256. end

  257. end

  258. function getaimbotplrs()

  259. plrsforaim = {}

  260. for i, plr in pairs(plrs:GetChildren()) do

  261. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then

  262. if TeamBased == true then

  263. if plr.Team.Name ~= lplr.Team.Name then

  264. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)

  265. local r = Ray.new(cf, cf.LookVector * 10000)

  266. local ign = {}

  267. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do

  268. if v:IsA("BasePart") then

  269. table.insert(ign , v)

  270. end

  271. end

  272. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)

  273. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then

  274. table.insert(plrsforaim, obj)

  275. end

  276. end

  277. else

  278. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)

  279. local r = Ray.new(cf, cf.LookVector * 10000)

  280. local ign = {}

  281. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do

  282. if v:IsA("BasePart") then

  283. table.insert(ign , v)

  284. end

  285. end

  286. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)

  287. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then

  288. table.insert(plrsforaim, obj)

  289. end

  290. end

  291. end

  292. end

  293. end

  294. function aimat(part)

  295. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)

  296. end

  297. function checkfov (part)

  298. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)

  299. local angle = math.abs(fov.X) + math.abs(fov.Y)

  300. return angle

  301. end

  302. game:GetService("RunService").RenderStepped:Connect(function()

  303. if aimatpart then

  304. aimat(aimatpart)

  305. if aimatpart.Parent == plrs.LocalPlayer.Character then

  306. aimatpart = nil

  307. end

  308. end

  309. -- if switch == true then

  310. -- local maxangle = 99999

  311. --

  312. -- --print("Loop")

  313. -- if true and raycast == false then

  314. -- for i, plr in pairs(plrs:GetChildren()) do

  315. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then

  316. -- if TeamBased then

  317. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then

  318. -- local an = checkfov(plr.Character.Head)

  319. -- if an < maxangle then

  320. -- maxangle = an

  321. -- aimatpart = plr.Character.Head

  322. -- if an < lockangle then

  323. -- break

  324. -- end

  325. -- end

  326. -- end

  327. -- else

  328. -- local an = checkfov(plr.Character.Head)

  329. -- if an < maxangle then

  330. -- maxangle = an

  331. -- aimatpart = plr.Character.Head

  332. -- if an < lockangle then

  333. -- break

  334. -- end

  335. -- end

  336. -- end

  337. --

  338. --

  339. --

  340. --

  341. -- end

  342. -- end

  343. -- elseif raycast == true then

  344. --

  345. -- end

  346. if raycast == true and switch == false and not aimatpart then

  347. getaimbotplrs()

  348. aimatpart = nil

  349. local maxangle = 999

  350. for i, v in ipairs(plrsforaim) do

  351. if v.Parent ~= lplr.Character then

  352. local an = checkfov(v)

  353. if an < maxangle and v ~= lplr.Character.Head then

  354. maxangle = an

  355. aimatpart = v

  356. print(v:GetFullName())

  357. v.Parent.Humanoid.Died:connect(function()

  358. aimatpart = nil

  359. end)

  360. end

  361. end

  362. end

  363. end

  364. end)

  365. delay(0, function()

  366. while wait(espupdatetime) do

  367. if autoesp == true then

  368. pcall(function()

  369. f.addesp()

  370. end)

  371. end

  372. end

  373. end)

  374. warn("loaded")

ARSENAL - AIMBOT / ESP - Pastebin.com (2024)

References

Top Articles
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 6156

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.