Facebook
From Gruff Armadillo, 2 Years ago, written in CSS.
This paste is a reply to Arsenal aimbot from Scorching Moth - view diff
Embed
Download Paste or View Raw
Hits: 389
  1. loadstring(game:GetObjects(‘rbxassetid://340856112)[1].Source)()
  2. 2.
  3. 3. wait()
  4. 4.
  5. 5. _G.FREE_FOR_ALL = true
  6. 6.
  7. 7. _G.BIND = 50 — LEFT CTRL
  8. 8. _G.ESP_BIND = 52 — LEFT AL
  9.  
  10. local plrs = game:GetService("Players")
  11. local TeamBased = true ; local teambasedswitch = "o"
  12. local presskeytoaim = true; local aimkey = "e"
  13. local raycast = false
  14.  
  15. local espupdatetime = 5; autoesp = false
  16.  
  17.  
  18.  
  19. local lockaim = true; local lockangle = 5
  20.  
  21.  
  22.  
  23. --function findwat(folder, what)
  24. --  for i, smth in pairs(folder:GetChildren()) do
  25. --      if string.find(string.lower(tostring(smth)), string.lower(what)) then
  26. --          return smth
  27. --      end
  28. --  end
  29. --end
  30. --
  31. --local plrs = findwat(game, "Players")
  32.  
  33.  
  34.  
  35.  
  36. local Gui = Instance.new("ScreenGui")
  37. local Move = Instance.new("Frame")
  38. local Main = Instance.new("Frame")
  39. local EspStatus = Instance.new("TextLabel")
  40. local st1 = Instance.new("TextLabel")
  41. local st1_2 = Instance.new("TextLabel")
  42. local st1_3 = Instance.new("TextLabel")
  43. local Name = Instance.new("TextLabel")
  44. --Properties:
  45. Gui.Name = "Gui"
  46. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  47.  
  48. Move.Name = "Move"
  49. Move.Parent = Gui
  50. Move.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  51. Move.BackgroundTransparency = 1
  52. Move.BorderSizePixel = 0
  53. Move.Draggable = true
  54. Move.Position = UDim2.new(0.005, 0, -0.15, 0)
  55. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  56.  
  57. Main.Name = "Main"
  58. Main.Parent = Move
  59. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  60. Main.Position = UDim2.new(0, -7, 20.9960003, 0)
  61. Main.Size = UDim2.new(1, 0, 5.79699993, 0)
  62. Main.Style = Enum.FrameStyle.RobloxSquare
  63.  
  64. EspStatus.Name = "EspStatus"
  65. EspStatus.Parent = Main
  66. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  67. EspStatus.BackgroundTransparency = 1
  68. EspStatus.Position = UDim2.new(0, 0, 0.300000012, 0)
  69. EspStatus.Size = UDim2.new(1, 0, 0.162, 0)
  70. EspStatus.Font = Enum.Font.ArialBold
  71. EspStatus.Text = "Created by YM-Roblox"
  72. EspStatus.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  73. EspStatus.TextScaled = true
  74. EspStatus.TextWrapped = true
  75.  
  76. st1.Name = "st1"
  77. st1.Parent = Main
  78. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  79. st1.BackgroundTransparency = 1
  80. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  81. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  82. st1.Font = Enum.Font.ArialBold
  83. st1.Text = ""
  84. st1.TextColor3 = Color3.new(0.0784314, 0.541176, 0)
  85. st1.TextScaled = true
  86. st1.TextSize = 14
  87. st1.TextWrapped = true
  88.  
  89. st1_2.Name = "st1"
  90. st1_2.Parent = Main
  91. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  92. st1_2.BackgroundTransparency = 1
  93. st1_2.Position = UDim2.new(0, 0, 0.875999987, 0)
  94. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  95. st1_2.Font = Enum.Font.ArialBold
  96. st1_2.Text = "press E for Aimbot!"
  97. st1_2.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  98. st1_2.TextScaled = true
  99. st1_2.TextWrapped = true
  100.  
  101. st1_3.Name = "st1"
  102. st1_3.Parent = Main
  103. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  104. st1_3.BackgroundTransparency = 1
  105. st1_3.Position = UDim2.new(0, 0, 0.54, 0)
  106. st1_3.Size = UDim2.new(1, 0, 0.261999995, 0)
  107. st1_3.Font = Enum.Font.ArialBold
  108. st1_3.Text = "press L and T for ESP!"
  109. st1_3.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  110. st1_3.TextScaled = true
  111. st1_3.TextWrapped = true
  112.  
  113.  
  114. Name.Name = "Name"
  115. Name.Parent = Move
  116. Name.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  117. Name.BackgroundTransparency = 1
  118. Name.Position = UDim2.new(0, 25, 20.9860001, 0)
  119. Name.Size = UDim2.new(0.838, 0, 1.27999997, 0)
  120. Name.Font = Enum.Font.Arcade
  121. Name.Text = "YM-Roblox | Arsenal"
  122. Name.TextColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  123. Name.TextScaled = true
  124. Name.TextSize = 12
  125. Name.TextWrapped = true
  126. -- Scripts:
  127.  
  128.  
  129. local plrsforaim = {}
  130.  
  131. local lplr = game:GetService("Players").LocalPlayer
  132. Move.Draggable = true
  133. Gui.ResetOnSpawn = false
  134. Gui.Name = "Chat"
  135. Gui.DisplayOrder = 999
  136.  
  137.     Gui.Parent = plrs.LocalPlayer.PlayerGui
  138.  
  139.  
  140. f = {}
  141. local espforlder
  142.  
  143. f.addesp = function()
  144.     --print("ESP ran")
  145.     if espforlder then
  146.     else
  147.         espforlder = Instance.new("Folder")
  148.         espforlder.Parent = game.Workspace.CurrentCamera
  149.     end
  150.     for i, v in pairs(espforlder:GetChildren()) do
  151.         v:Destroy()
  152.     end
  153.     for _, plr in pairs(plrs:GetChildren()) do
  154.         if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  155.             if TeamBased == true then
  156.                 if plr.Team.Name ~= plrs.LocalPlayer.Team.Name  then
  157.                     local e = espforlder:FindFirstChild(plr.Name)
  158.                     if not e then
  159.                         --print("Added esp for team based")
  160.                         local bill = Instance.new("BillboardGui", espforlder)
  161.                         bill.Name = plr.Name
  162.                         bill.AlwaysOnTop = true
  163.                         bill.Size = UDim2.new(1,0,1,0)
  164.                         bill.Adornee = plr.Character.Head
  165.                         local Frame = Instance.new('Frame',bill)
  166.                         Frame.Active = true
  167.                         Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  168.                         Frame.BackgroundTransparency = 0
  169.                         Frame.BorderSizePixel = 0
  170.                         Frame.AnchorPoint = Vector2.new(.5, .5)
  171.                         Frame.Position = UDim2.new (0.5,0,0.5,0)
  172.                         Frame.Size = UDim2.new (1,0,1,0)
  173.                         Frame.Rotation = 0
  174.                         plr.Character.Humanoid.Died:Connect(function()
  175.                             bill:Destroy()
  176.                         end)
  177.                     end
  178.                 end
  179.             else
  180.                 local e = espforlder:FindFirstChild(plr.Name)
  181.                 if not e then
  182.                     --print("Added esp")
  183.                     local bill = Instance.new("BillboardGui", espforlder)
  184.                     bill.Name = plr.Name
  185.                     bill.AlwaysOnTop = true
  186.                     bill.Size = UDim2.new(1,0,1,0)
  187.                     bill.Adornee = plr.Character.Head
  188.                     local Frame = Instance.new('Frame',bill)
  189.                     Frame.Active = true
  190.                     Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  191.                     Frame.BackgroundTransparency = 0
  192.                     Frame.BorderSizePixel = 0
  193.                     Frame.AnchorPoint = Vector2.new(.5, .5)
  194.                     Frame.Position = UDim2.new (0.5,0,0.5,0)
  195.                     Frame.Size = UDim2.new (1,0,1,0)
  196.                     Frame.Rotation = 0
  197.                     plr.Character.Humanoid.Died:Connect(function()
  198.                         bill:Destroy()
  199.                     end)
  200.                 end
  201.             end
  202.            
  203.            
  204.         end
  205.     end
  206. end
  207. local cam = game.Workspace.CurrentCamera
  208.  
  209. local mouse = lplr:GetMouse()
  210. local switch = false
  211. local key = "k"
  212. local aimatpart = nil
  213. mouse.KeyDown:Connect(function(a)
  214.     if a == "t" then
  215.         print("worked1")
  216.         f.addesp()
  217.     elseif a == "u" then
  218.         if raycast == true then
  219.             raycast = false
  220.         else
  221.             raycast = true
  222.         end
  223.     elseif a == "l" then
  224.         if autoesp == false then
  225.             autoesp = true
  226.         else
  227.             autoesp = false
  228.         end
  229.     end
  230.     if a == "j" then
  231.         if mouse.Target then
  232.             mouse.Target:Destroy()
  233.         end
  234.     end
  235.     if a == key then
  236.         if switch == false then
  237.             switch = true
  238.         else
  239.             switch = false
  240.             if aimatpart ~= nil then
  241.                 aimatpart = nil
  242.             end
  243.         end
  244.     elseif a == teambasedswitch then
  245.         if TeamBased == true then
  246.             TeamBased = false
  247.             teambasedstatus.Text = tostring(TeamBased)
  248.         else
  249.             TeamBased = true
  250.             teambasedstatus.Text = tostring(TeamBased)
  251.         end
  252.     elseif a == aimkey then
  253.         if not aimatpart then
  254.             local maxangle = math.rad(20)
  255.             for i, plr in pairs(plrs:GetChildren()) do
  256.                 if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  257.                     if TeamBased == true then
  258.                         if plr.Team.Name ~= lplr.Team.Name then
  259.                             local an = checkfov(plr.Character.Head)
  260.                             if an < maxangle then
  261.                                 maxangle = an
  262.                                 aimatpart = plr.Character.Head
  263.                             end
  264.                         end
  265.                     else
  266.                         local an = checkfov(plr.Character.Head)
  267.                             if an < maxangle then
  268.                                 maxangle = an
  269.                                 aimatpart = plr.Character.Head
  270.                             end
  271.                             print(plr)
  272.                     end
  273.                     plr.Character.Humanoid.Died:Connect(function()
  274.                         if aimatpart.Parent == plr.Character or aimatpart == nil then
  275.                             aimatpart = nil
  276.                         end
  277.                     end)
  278.                 end
  279.             end
  280.         else
  281.             aimatpart = nil
  282.         end
  283.     end
  284. end)
  285.  
  286. function getfovxyz (p0, p1, deg)
  287.     local x1, y1, z1 = p0:ToOrientation()
  288.     local cf = CFrame.new(p0.p, p1.p)
  289.     local x2, y2, z2 = cf:ToOrientation()
  290.     --local d = math.deg
  291.     if deg then
  292.         --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  293.     else
  294.         return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  295.     end
  296. end
  297.  
  298. function getaimbotplrs()
  299.     plrsforaim = {}
  300.     for i, plr in pairs(plrs:GetChildren()) do
  301.         if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  302.            
  303.             if TeamBased == true then
  304.                 if plr.Team.Name ~= lplr.Team.Name then
  305.                     local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  306.                     local r = Ray.new(cf, cf.LookVector * 10000)
  307.                     local ign = {}
  308.                     for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  309.                         if v:IsA("BasePart") then
  310.                             table.insert(ign , v)
  311.                         end
  312.                     end
  313.                     local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  314.                     if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  315.                         table.insert(plrsforaim, obj)
  316.                     end
  317.                 end
  318.             else
  319.                 local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  320.                 local r = Ray.new(cf, cf.LookVector * 10000)
  321.                 local ign = {}
  322.                 for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  323.                     if v:IsA("BasePart") then
  324.                         table.insert(ign , v)
  325.                     end
  326.                 end
  327.                 local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  328.                 if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  329.                     table.insert(plrsforaim, obj)
  330.                 end
  331.             end
  332.            
  333.            
  334.         end
  335.     end
  336. end
  337.  
  338. function aimat(part)
  339.     cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  340. end
  341. function checkfov (part)
  342.     local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  343.     local angle = math.abs(fov.X) + math.abs(fov.Y)
  344.     return angle
  345. end
  346.  
  347. game:GetService("RunService").RenderStepped:Connect(function()
  348.     if aimatpart then
  349.         aimat(aimatpart)
  350.         if aimatpart.Parent == plrs.LocalPlayer.Character then
  351.             aimatpart = nil
  352.         end
  353.     end
  354.    
  355.    
  356. --  if switch == true then
  357. --      local maxangle = 99999
  358. --      
  359. --      --print("Loop")
  360. --      if true and raycast == false then
  361. --          for i, plr in pairs(plrs:GetChildren()) do
  362. --              if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  363. --                  if TeamBased then
  364. --                      if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  365. --                          local an = checkfov(plr.Character.Head)
  366. --                          if an < maxangle then
  367. --                              maxangle = an
  368. --                              aimatpart = plr.Character.Head
  369. --                              if an < lockangle then
  370. --                                  break
  371. --                              end
  372. --                          end
  373. --                      end
  374. --                  else
  375. --                      local an = checkfov(plr.Character.Head)
  376. --                          if an < maxangle then
  377. --                              maxangle = an
  378. --                              aimatpart = plr.Character.Head
  379. --                              if an < lockangle then
  380. --                                  break
  381. --                              end
  382. --                          end
  383. --                  end
  384. --                  
  385. --                  
  386. --                  
  387. --                  
  388. --              end
  389. --          end
  390. --      elseif raycast == true then
  391. --          
  392. --      end
  393.        
  394.         if raycast == true and switch == false and not aimatpart then
  395.             getaimbotplrs()
  396.             aimatpart = nil
  397.             local maxangle = 999
  398.             for i, v in ipairs(plrsforaim) do
  399.                 if v.Parent ~= lplr.Character then
  400.                     local an = checkfov(v)
  401.                     if an < maxangle and v ~= lplr.Character.Head then
  402.                         maxangle = an
  403.                         aimatpart = v
  404.                         print(v:GetFullName())
  405.                         v.Parent.Humanoid.Died:connect(function()
  406.                             aimatpart = nil
  407.                         end)
  408.                     end
  409.                 end
  410.             end
  411.        
  412.     end
  413. end)
  414. delay(0, function()
  415.     while wait(espupdatetime) do
  416.         if autoesp == true then
  417.             pcall(function()
  418.             f.addesp()
  419.             end)
  420.         end
  421.     end
  422. end)
  423. warn("loaded")
captcha