Advertisement
Guest User

Arsenal Gui

a guest
Feb 23rd, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.59 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Admin = Instance.new("ScreenGui")
  7. local Main = Instance.new("Frame")
  8. local NoclipButton = Instance.new("TextButton")
  9. local CloseBtn = Instance.new("TextButton")
  10. local Arsenal = Instance.new("TextButton")
  11. local TITLE = Instance.new("TextBox")
  12. local Ftonoclip = Instance.new("TextBox")
  13. local Open = Instance.new("TextButton")
  14.  
  15. --Properties:
  16.  
  17. Admin.Name = "Admin "
  18. Admin.Parent = game.CoreGui
  19. Admin.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  20.  
  21. Main.Name = "Main"
  22. Main.Parent = Admin
  23. Main.BackgroundColor3 = Color3.fromRGB(30, 28, 26)
  24. Main.BackgroundTransparency = 0.010
  25. Main.Position = UDim2.new(0.176902369, 0, 0.221953616, 0)
  26. Main.Size = UDim2.new(0, 314, 0, 374)
  27. Main.Active = true
  28. Main.Draggable = true
  29.  
  30. NoclipButton.Name = "NoclipButton"
  31. NoclipButton.Parent = Main
  32. NoclipButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  33. NoclipButton.BackgroundTransparency = 0.600
  34. NoclipButton.Position = UDim2.new(0.0551415943, 0, 0.591301918, 0)
  35. NoclipButton.Size = UDim2.new(0, 284, 0, 146)
  36. NoclipButton.Font = Enum.Font.SourceSansLight
  37. NoclipButton.Text = "Noclip"
  38. NoclipButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  39. NoclipButton.TextScaled = true
  40. NoclipButton.TextSize = 24.000
  41. NoclipButton.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  42. NoclipButton.TextWrapped = true
  43.  
  44. CloseBtn.Name = "CloseBtn"
  45. CloseBtn.Parent = Main
  46. CloseBtn.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  47. CloseBtn.BackgroundTransparency = 1.000
  48. CloseBtn.Position = UDim2.new(0.887420058, 0, 0, 0)
  49. CloseBtn.Size = UDim2.new(0, 35, 0, 29)
  50. CloseBtn.Font = Enum.Font.SourceSans
  51. CloseBtn.Text = "X"
  52. CloseBtn.TextColor3 = Color3.fromRGB(58, 58, 58)
  53. CloseBtn.TextScaled = true
  54. CloseBtn.TextSize = 14.000
  55. CloseBtn.TextWrapped = true
  56.  
  57. Arsenal.Name = "Arsenal "
  58. Arsenal.Parent = Main
  59. Arsenal.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  60. Arsenal.BackgroundTransparency = 0.600
  61. Arsenal.Position = UDim2.new(0.0538176261, 0, 0.167506993, 0)
  62. Arsenal.Size = UDim2.new(0, 283, 0, 152)
  63. Arsenal.Font = Enum.Font.SourceSansLight
  64. Arsenal.Text = "Aimbot & ESP"
  65. Arsenal.TextColor3 = Color3.fromRGB(255, 255, 255)
  66. Arsenal.TextScaled = true
  67. Arsenal.TextSize = 14.000
  68. Arsenal.TextWrapped = true
  69.  
  70. TITLE.Name = "TITLE"
  71. TITLE.Parent = Main
  72. TITLE.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  73. TITLE.BackgroundTransparency = 1.000
  74. TITLE.Position = UDim2.new(-0.0033084359, 0, 0, 0)
  75. TITLE.Size = UDim2.new(0, 279, 0, 55)
  76. TITLE.ClearTextOnFocus = false
  77. TITLE.Font = Enum.Font.SourceSansLight
  78. TITLE.Text = "ARSENAL GUI"
  79. TITLE.TextColor3 = Color3.fromRGB(255, 255, 255)
  80. TITLE.TextScaled = true
  81. TITLE.TextSize = 14.000
  82. TITLE.TextWrapped = true
  83.  
  84. Ftonoclip.Name = "F to noclip"
  85. Ftonoclip.Parent = Main
  86. Ftonoclip.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. Ftonoclip.BackgroundTransparency = 1.000
  88. Ftonoclip.Position = UDim2.new(0, 0, 0.550802052, 0)
  89. Ftonoclip.Size = UDim2.new(0, 299, 0, 278)
  90. Ftonoclip.Font = Enum.Font.SourceSansItalic
  91. Ftonoclip.Text = "(F)"
  92. Ftonoclip.TextColor3 = Color3.fromRGB(255, 246, 240)
  93. Ftonoclip.TextSize = 32.000
  94.  
  95. Open.Name = "Open"
  96. Open.Parent = Admin
  97. Open.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
  98. Open.BackgroundTransparency = 0.010
  99. Open.Position = UDim2.new(0.00308641978, 0, 0.799053073, 0)
  100. Open.Size = UDim2.new(0, 165, 0, 54)
  101. Open.Font = Enum.Font.SourceSansLight
  102. Open.Text = "Open"
  103. Open.TextColor3 = Color3.fromRGB(255, 255, 255)
  104. Open.TextScaled = true
  105. Open.TextSize = 14.000
  106. Open.TextWrapped = true
  107.  
  108. -- Scripts:
  109.  
  110. local function UVUUY_fake_script() -- NoclipButton.LocalScript
  111. local script = Instance.new('LocalScript', NoclipButton)
  112.  
  113. noclip = false
  114. game:GetService('RunService').Stepped:connect(function()
  115. if noclip then
  116. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  117. end
  118. end)
  119. plr = game.Players.LocalPlayer
  120. mouse = plr:GetMouse()
  121. mouse.KeyDown:connect(function(key)
  122.  
  123. if key == "f" then
  124. noclip = not noclip
  125. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  126. end
  127. end)
  128.  
  129. end
  130. coroutine.wrap(UVUUY_fake_script)()
  131. local function ERVU_fake_script() -- Arsenal.LocalScript
  132. local script = Instance.new('LocalScript', Arsenal)
  133.  
  134. local btn = script.Parent
  135.  
  136.  
  137. btn.MouseButton1Down:connect(function()
  138. local plrs = game:GetService("Players")
  139. local TeamBased = true ; local teambasedswitch = "o"
  140. local presskeytoaim = true; local aimkey = "e"
  141. local raycast = false
  142.  
  143. local espupdatetime = 5; autoesp = false
  144.  
  145.  
  146.  
  147. local lockaim = true; local lockangle = 5
  148.  
  149.  
  150.  
  151. --function findwat(folder, what)
  152. -- for i, smth in pairs(folder:GetChildren()) do
  153. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then
  154. -- return smth
  155. -- end
  156. -- end
  157. --end
  158. --
  159. --local plrs = findwat(game, "Players")
  160.  
  161.  
  162.  
  163.  
  164. local Gui = Instance.new("ScreenGui")
  165. local Move = Instance.new("Frame")
  166. local Main = Instance.new("Frame")
  167. local EspStatus = Instance.new("TextLabel")
  168. local st1 = Instance.new("TextLabel")
  169. local st1_2 = Instance.new("TextLabel")
  170. local st1_3 = Instance.new("TextLabel")
  171. local Name = Instance.new("TextLabel")
  172. --Properties:
  173. Gui.Name = "Gui"
  174. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  175.  
  176. Move.Name = "Move"
  177. Move.Parent = Gui
  178. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)
  179. Move.BackgroundTransparency = 0.40000000596046
  180. Move.BorderSizePixel = 0
  181. Move.Position = UDim2.new(0.005, 0,0.018, 0)
  182. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  183.  
  184. Main.Name = "Main"
  185. Main.Parent = Move
  186. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  187. Main.BackgroundTransparency = 0.69999998807907
  188. Main.Position = UDim2.new(0, 0, 0.995670795, 0)
  189. Main.Size = UDim2.new(1.0000006, 0, 9.79697132, 0)
  190.  
  191. EspStatus.Name = "EspStatus"
  192. EspStatus.Parent = Main
  193. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  194. EspStatus.BackgroundTransparency = 1
  195. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)
  196. EspStatus.Font = Enum.Font.ArialBold
  197. EspStatus.Text = "Press T to update Esp"
  198. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  199. EspStatus.TextScaled = true
  200. EspStatus.TextSize = 14
  201. EspStatus.TextWrapped = true
  202.  
  203. st1.Name = "st1"
  204. st1.Parent = Main
  205. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  206. st1.BackgroundTransparency = 1
  207. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  208. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  209. st1.Font = Enum.Font.ArialBold
  210. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"
  211. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  212. st1.TextScaled = true
  213. st1.TextSize = 14
  214. st1.TextWrapped = true
  215.  
  216. st1_2.Name = "st1"
  217. st1_2.Parent = Main
  218. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  219. st1_2.BackgroundTransparency = 1
  220. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
  221. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  222. st1_2.Font = Enum.Font.ArialBold
  223. st1_2.Text = "Press L to enable esp loop"
  224. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  225. st1_2.TextScaled = true
  226. st1_2.TextSize = 14
  227. st1_2.TextWrapped = true
  228.  
  229. st1_3.Name = "st1"
  230. st1_3.Parent = Main
  231. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  232. st1_3.BackgroundTransparency = 1
  233. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
  234. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  235. st1_3.Font = Enum.Font.ArialBold
  236. st1_3.Text = "Press O to change team based mode"
  237. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  238. st1_3.TextScaled = true
  239. st1_3.TextSize = 14
  240. st1_3.TextWrapped = true
  241. local teambasedstatus = st1_3:Clone()
  242. teambasedstatus.Parent = st1_3
  243. teambasedstatus.TextScaled = true
  244. teambasedstatus.Position = UDim2.new(0, 0,0.694, 0)
  245. teambasedstatus.Text = tostring(TeamBased)
  246.  
  247. Name.Name = "Name"
  248. Name.Parent = Move
  249. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  250. Name.BackgroundTransparency = 1
  251. Name.Size = UDim2.new(0.838, 0, 0.980000019, 0)
  252. Name.Font = Enum.Font.Arial
  253. Name.Text = "FPS gui v1.0"
  254. Name.TextColor3 = Color3.new(0, 0, 0)
  255. Name.TextScaled = true
  256. Name.TextSize = 14
  257. Name.TextWrapped = true
  258. Name.TextXAlignment = Enum.TextXAlignment.Left
  259. -- Scripts:
  260.  
  261.  
  262. local plrsforaim = {}
  263.  
  264. local lplr = game:GetService("Players").LocalPlayer
  265. Move.Draggable = true
  266. Gui.ResetOnSpawn = false
  267. Gui.Name = "Chat"
  268. Gui.DisplayOrder = 999
  269.  
  270. Gui.Parent = plrs.LocalPlayer.PlayerGui
  271.  
  272.  
  273. f = {}
  274. local espforlder
  275.  
  276. f.addesp = function()
  277. --print("ESP ran")
  278. if espforlder then
  279. else
  280. espforlder = Instance.new("Folder")
  281. espforlder.Parent = game.Workspace.CurrentCamera
  282. end
  283. for i, v in pairs(espforlder:GetChildren()) do
  284. v:Destroy()
  285. end
  286. for _, plr in pairs(plrs:GetChildren()) do
  287. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  288. if TeamBased == true then
  289. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  290. local e = espforlder:FindFirstChild(plr.Name)
  291. if not e then
  292. --print("Added esp for team based")
  293. local bill = Instance.new("BillboardGui", espforlder)
  294. bill.Name = plr.Name
  295. bill.AlwaysOnTop = true
  296. bill.Size = UDim2.new(1,0,1,0)
  297. bill.Adornee = plr.Character.Head
  298. local Frame = Instance.new('Frame',bill)
  299. Frame.Active = true
  300. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  301. Frame.BackgroundTransparency = 0
  302. Frame.BorderSizePixel = 0
  303. Frame.AnchorPoint = Vector2.new(.5, .5)
  304. Frame.Position = UDim2.new (0.5,0,0.5,0)
  305. Frame.Size = UDim2.new (1,0,1,0)
  306. Frame.Rotation = 0
  307. plr.Character.Humanoid.Died:Connect(function()
  308. bill:Destroy()
  309. end)
  310. end
  311. end
  312. else
  313. local e = espforlder:FindFirstChild(plr.Name)
  314. if not e then
  315. --print("Added esp")
  316. local bill = Instance.new("BillboardGui", espforlder)
  317. bill.Name = plr.Name
  318. bill.AlwaysOnTop = true
  319. bill.Size = UDim2.new(1,0,1,0)
  320. bill.Adornee = plr.Character.Head
  321. local Frame = Instance.new('Frame',bill)
  322. Frame.Active = true
  323. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  324. Frame.BackgroundTransparency = 0
  325. Frame.BorderSizePixel = 0
  326. Frame.AnchorPoint = Vector2.new(.5, .5)
  327. Frame.Position = UDim2.new (0.5,0,0.5,0)
  328. Frame.Size = UDim2.new (1,0,1,0)
  329. Frame.Rotation = 0
  330. plr.Character.Humanoid.Died:Connect(function()
  331. bill:Destroy()
  332. end)
  333. end
  334. end
  335.  
  336.  
  337. end
  338. end
  339. end
  340. local cam = game.Workspace.CurrentCamera
  341.  
  342. local mouse = lplr:GetMouse()
  343. local switch = false
  344. local key = "k"
  345. local aimatpart = nil
  346. mouse.KeyDown:Connect(function(a)
  347. if a == "t" then
  348. print("worked1")
  349. f.addesp()
  350. elseif a == "u" then
  351. if raycast == true then
  352. raycast = false
  353. else
  354. raycast = true
  355. end
  356. elseif a == "l" then
  357. if autoesp == false then
  358. autoesp = true
  359. else
  360. autoesp = false
  361. end
  362. end
  363. if a == "j" then
  364. if mouse.Target then
  365. mouse.Target:Destroy()
  366. end
  367. end
  368. if a == key then
  369. if switch == false then
  370. switch = true
  371. else
  372. switch = false
  373. if aimatpart ~= nil then
  374. aimatpart = nil
  375. end
  376. end
  377. elseif a == teambasedswitch then
  378. if TeamBased == true then
  379. TeamBased = false
  380. teambasedstatus.Text = tostring(TeamBased)
  381. else
  382. TeamBased = true
  383. teambasedstatus.Text = tostring(TeamBased)
  384. end
  385. elseif a == aimkey then
  386. if not aimatpart then
  387. local maxangle = math.rad(20)
  388. for i, plr in pairs(plrs:GetChildren()) do
  389. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  390. if TeamBased == true then
  391. if plr.Team.Name ~= lplr.Team.Name then
  392. local an = checkfov(plr.Character.Head)
  393. if an < maxangle then
  394. maxangle = an
  395. aimatpart = plr.Character.Head
  396. end
  397. end
  398. else
  399. local an = checkfov(plr.Character.Head)
  400. if an < maxangle then
  401. maxangle = an
  402. aimatpart = plr.Character.Head
  403. end
  404. print(plr)
  405. end
  406. plr.Character.Humanoid.Died:Connect(function()
  407. if aimatpart.Parent == plr.Character or aimatpart == nil then
  408. aimatpart = nil
  409. end
  410. end)
  411. end
  412. end
  413. else
  414. aimatpart = nil
  415. end
  416. end
  417. end)
  418.  
  419. function getfovxyz (p0, p1, deg)
  420. local x1, y1, z1 = p0:ToOrientation()
  421. local cf = CFrame.new(p0.p, p1.p)
  422. local x2, y2, z2 = cf:ToOrientation()
  423. --local d = math.deg
  424. if deg then
  425. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  426. else
  427. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  428. end
  429. end
  430.  
  431. function getaimbotplrs()
  432. plrsforaim = {}
  433. for i, plr in pairs(plrs:GetChildren()) do
  434. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  435.  
  436. if TeamBased == true then
  437. if plr.Team.Name ~= lplr.Team.Name then
  438. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  439. local r = Ray.new(cf, cf.LookVector * 10000)
  440. local ign = {}
  441. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  442. if v:IsA("BasePart") then
  443. table.insert(ign , v)
  444. end
  445. end
  446. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  447. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  448. table.insert(plrsforaim, obj)
  449. end
  450. end
  451. else
  452. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  453. local r = Ray.new(cf, cf.LookVector * 10000)
  454. local ign = {}
  455. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  456. if v:IsA("BasePart") then
  457. table.insert(ign , v)
  458. end
  459. end
  460. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  461. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  462. table.insert(plrsforaim, obj)
  463. end
  464. end
  465.  
  466.  
  467. end
  468. end
  469. end
  470.  
  471. function aimat(part)
  472. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  473. end
  474. function checkfov (part)
  475. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  476. local angle = math.abs(fov.X) + math.abs(fov.Y)
  477. return angle
  478. end
  479.  
  480. game:GetService("RunService").RenderStepped:Connect(function()
  481. if aimatpart then
  482. aimat(aimatpart)
  483. if aimatpart.Parent == plrs.LocalPlayer.Character then
  484. aimatpart = nil
  485. end
  486. end
  487.  
  488.  
  489. -- if switch == true then
  490. -- local maxangle = 99999
  491. --
  492. -- --print("Loop")
  493. -- if true and raycast == false then
  494. -- for i, plr in pairs(plrs:GetChildren()) do
  495. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  496. -- if TeamBased then
  497. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  498. -- local an = checkfov(plr.Character.Head)
  499. -- if an < maxangle then
  500. -- maxangle = an
  501. -- aimatpart = plr.Character.Head
  502. -- if an < lockangle then
  503. -- break
  504. -- end
  505. -- end
  506. -- end
  507. -- else
  508. -- local an = checkfov(plr.Character.Head)
  509. -- if an < maxangle then
  510. -- maxangle = an
  511. -- aimatpart = plr.Character.Head
  512. -- if an < lockangle then
  513. -- break
  514. -- end
  515. -- end
  516. -- end
  517. --
  518. --
  519. --
  520. --
  521. -- end
  522. -- end
  523. -- elseif raycast == true then
  524. --
  525. -- end
  526.  
  527. if raycast == true and switch == false and not aimatpart then
  528. getaimbotplrs()
  529. aimatpart = nil
  530. local maxangle = 999
  531. for i, v in ipairs(plrsforaim) do
  532. if v.Parent ~= lplr.Character then
  533. local an = checkfov(v)
  534. if an < maxangle and v ~= lplr.Character.Head then
  535. maxangle = an
  536. aimatpart = v
  537. print(v:GetFullName())
  538. v.Parent.Humanoid.Died:connect(function()
  539. aimatpart = nil
  540. end)
  541. end
  542. end
  543. end
  544.  
  545. end
  546. end)
  547. delay(0, function()
  548. while wait(espupdatetime) do
  549. if autoesp == true then
  550. pcall(function()
  551. f.addesp()
  552. end)
  553. end
  554. end
  555. end)
  556. warn("loaded")
  557. end)
  558.  
  559. end
  560. coroutine.wrap(ERVU_fake_script)()
  561. local function RSCYXEW_fake_script() -- Admin.Main stuff
  562. local script = Instance.new('Script', Admin)
  563.  
  564.  
  565. -- instances
  566. local open = script.Parent.Open
  567. local main = script.Parent.Main
  568. local Close = main.CloseBtn
  569.  
  570.  
  571. --functions
  572.  
  573. open.MouseButton1Down:Connect(function()
  574. main.Visible = true
  575. end)
  576.  
  577. Close.MouseButton1Down:Connect(function()
  578. main.Visible = false
  579. end)
  580.  
  581.  
  582.  
  583.  
  584. end
  585. coroutine.wrap(RSCYXEW_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement