FrozenScript

8xsp's Fuck Arsenal GUI V2

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