Advertisement
abdo_2008

OG Arsenal script made by Games in dark/aboooodyyyyy

May 3rd, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.85 KB | None | 0 0
  1. -- Made by Games in dark/aboooodyyyyy
  2.  
  3. -- Instances:
  4.  
  5. local ScreenGui = Instance.new("ScreenGui")
  6. local Main = Instance.new("Frame")
  7. local title = Instance.new("TextLabel")
  8. local close = Instance.new("TextButton")
  9. local Aimbot = Instance.new("TextButton")
  10. local Noclip = Instance.new("TextButton")
  11. local fly = Instance.new("TextButton")
  12. local openmain = Instance.new("Frame")
  13. local open = Instance.new("TextButton")
  14.  
  15. --Properties:
  16.  
  17. ScreenGui.Parent = game.CoreGui
  18.  
  19. Main.Name = "Main"
  20. Main.Parent = ScreenGui
  21. Main.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  22. Main.Position = UDim2.new(0.292763144, 0, 0.373040766, 0)
  23. Main.Size = UDim2.new(0, 515, 0, 347)
  24. Main.Visible = false
  25. Main.Active = true
  26. Main.Draggable = true
  27.  
  28. title.Name = "title"
  29. title.Parent = Main
  30. title.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  31. title.BorderColor3 = Color3.fromRGB(255, 255, 255)
  32. title.Size = UDim2.new(0, 441, 0, 50)
  33. title.Font = Enum.Font.GothamBlack
  34. title.Text = "Arsenal OP GUI made by Games in dark/aboooodyyyyy"
  35. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  36. title.TextScaled = true
  37. title.TextSize = 14.000
  38. title.TextWrapped = true
  39.  
  40. close.Name = "close"
  41. close.Parent = Main
  42. close.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  43. close.BorderColor3 = Color3.fromRGB(255, 255, 255)
  44. close.Position = UDim2.new(0.856310666, 0, 0, 0)
  45. close.Size = UDim2.new(0, 74, 0, 50)
  46. close.Font = Enum.Font.GothamBlack
  47. close.Text = "toogle close"
  48. close.TextColor3 = Color3.fromRGB(255, 255, 255)
  49. close.TextScaled = true
  50. close.TextSize = 14.000
  51. close.TextWrapped = true
  52. Main.Visible = false
  53. openmain.Visible = true
  54.  
  55. Aimbot.Name = "Aimbot"
  56. Aimbot.Parent = Main
  57. Aimbot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. Aimbot.Position = UDim2.new(0.304854363, 0, 0.204610944, 0)
  59. Aimbot.Size = UDim2.new(0, 200, 0, 50)
  60. Aimbot.Font = Enum.Font.GothamBlack
  61. Aimbot.Text = "Aimbot"
  62. Aimbot.TextColor3 = Color3.fromRGB(0, 0, 0)
  63. Aimbot.TextScaled = true
  64. Aimbot.TextSize = 14.000
  65. Aimbot.TextWrapped = true
  66.  
  67. Noclip.Name = "Noclip"
  68. Noclip.Parent = Main
  69. Noclip.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  70. Noclip.Position = UDim2.new(0.304854363, 0, 0.527377546, 0)
  71. Noclip.Size = UDim2.new(0, 200, 0, 50)
  72. Noclip.Font = Enum.Font.GothamBlack
  73. Noclip.Text = "Noclip"
  74. Noclip.TextColor3 = Color3.fromRGB(0, 0, 0)
  75. Noclip.TextScaled = true
  76. Noclip.TextSize = 14.000
  77. Noclip.TextWrapped = true
  78.  
  79. fly.Name = "fly"
  80. fly.Parent = Main
  81. fly.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  82. fly.Position = UDim2.new(0.304854363, 0, 0.783861697, 0)
  83. fly.Size = UDim2.new(0, 200, 0, 50)
  84. fly.Font = Enum.Font.GothamBlack
  85. fly.Text = "Fly"
  86. fly.TextColor3 = Color3.fromRGB(0, 0, 0)
  87. fly.TextScaled = true
  88. fly.TextSize = 14.000
  89. fly.TextWrapped = true
  90.  
  91. openmain.Name = "open.main"
  92. openmain.Parent = ScreenGui
  93. openmain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. openmain.Position = UDim2.new(0.890350878, 0, 0.841692805, 0)
  95. openmain.Size = UDim2.new(0, 77, 0, 35)
  96. openmain.Active = true
  97. openmain.Draggable = true
  98.  
  99. open.Name = "open"
  100. open.Parent = openmain
  101. open.BackgroundColor3 = Color3.fromRGB(85, 0, 255)
  102. open.Position = UDim2.new(0, 0, 0.0285714287, 0)
  103. open.Size = UDim2.new(0, 77, 0, 34)
  104. open.Font = Enum.Font.GothamBlack
  105. open.Text = "toogle open"
  106. open.TextColor3 = Color3.fromRGB(0, 0, 0)
  107. open.TextScaled = true
  108. open.TextSize = 14.000
  109. open.TextWrapped = true
  110. Main.Visible = true
  111. openmain.Visible = false
  112.  
  113.  
  114.  
  115.  
  116. Aimbot.MouseButton1Down:connect(function()
  117. pcall(function()
  118. local espcolor = Color3.fromRGB(140, 69, 102)
  119. local wallhack_esp_transparency = .4
  120. local gui_hide_button = {Enum.KeyCode.LeftControl, "h"}
  121. local plrs = game:GetService("Players")
  122. local lplr = game:GetService("Players").LocalPlayer
  123. local TeamBased = true ; local teambasedswitch = "o"
  124. local presskeytoaim = true; local aimkey = "e"
  125. aimbothider = false; aimbothiderspeed = .5
  126. local Aim_Assist = false ; Aim_Assist_Key = {Enum.KeyCode.LeftControl, "z"}
  127. local espupdatetime = 5; autoesp = false
  128. local abs = math.abs
  129. local mouselock = false
  130. local canaimat = true
  131. local lockaim = true; local lockangle = 5
  132. local ver = "2"
  133. local cam = game.Workspace.CurrentCamera
  134. local BetterDeathCount = true
  135.  
  136.  
  137. local mouse = lplr:GetMouse()
  138. local switch = false
  139. local key = "k"
  140. local aimatpart = nil
  141.  
  142.  
  143.  
  144.  
  145. local Gui = Instance.new("ScreenGui")
  146. local Move = Instance.new("Frame")
  147. local Main = Instance.new("Frame")
  148. local EspStatus = Instance.new("TextLabel")
  149. local st1 = Instance.new("TextLabel")
  150. local st1_2 = Instance.new("TextLabel")
  151. local st1_3 = Instance.new("TextLabel")
  152. local Name = Instance.new("TextLabel")
  153. --Properties:
  154.  
  155. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  156.  
  157.  
  158.  
  159. local gotstring = 0
  160. local function getrandomstring()
  161. gotstring = gotstring+666
  162. local str = ""
  163. local randomstring = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "g", "k", "l", "m", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
  164. "?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?", "`", "$",
  165. "0","1","2","3","4","5","6","7","8","9", }
  166. local counting123 = 0
  167. for i, v in ipairs(randomstring) do
  168. counting123 = i
  169. end
  170. do
  171. math.randomseed(tick()+gotstring)
  172. for i = 3, math.random(1,100) do
  173. math.randomseed(i+tick()+gotstring)
  174.  
  175. local oneortwo = math.random(1,2)
  176. if oneortwo == 2 then
  177. math.randomseed(i+tick()+gotstring)
  178. str = str..""..randomstring[math.random(1, counting123)]
  179. else
  180. math.randomseed(i+tick()+gotstring)
  181. str = str..""..string.upper(randomstring[math.random(1, counting123)])
  182. end
  183.  
  184. end
  185. end
  186. return str
  187. end
  188. local mousedown = false
  189. local isonmovething = false
  190. local mouseoffset = Vector2.new()
  191. local mousedown = false
  192.  
  193.  
  194.  
  195.  
  196. Gui.Name = getrandomstring()
  197.  
  198. Move.Name = getrandomstring()
  199. Move.Draggable = true
  200. Move.Parent = Gui
  201. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)
  202. Move.BackgroundTransparency = 0.40000000596046
  203. Move.BorderSizePixel = 0
  204. Move.Position = UDim2.new(0.5, 0,0.018, 0)
  205. Move.Size = UDim2.new(0.2, 0, 0.0320388414, 0)
  206.  
  207. Move.MouseEnter:Connect(function()
  208.  
  209. isonmovething = true
  210.  
  211. end)
  212. Move.MouseLeave:Connect(function()
  213.  
  214. isonmovething = mousedown and true or false
  215. end)
  216. mouse.Button1Down:connect(function()
  217. mousedown = true
  218. mouseoffset = Move.AbsolutePosition - Vector2.new(mouse.X, mouse.Y)
  219. end)
  220. mouse.Button1Up:connect(function()
  221. mousedown = false
  222. end)
  223.  
  224. mouse.Move:Connect(function()
  225. if isonmovething == true and mousedown then
  226. Move.Position = UDim2.new(0, mouseoffset.X + mouse.X, 0, mouseoffset.Y + mouse.Y)
  227. end
  228. end)
  229.  
  230. Main.Name = getrandomstring()
  231. Main.Parent = Move
  232. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  233. Main.BackgroundTransparency = 0.69999998807907
  234. Main.Position = UDim2.new(0, 0, 0.995670795, 0)
  235. Main.Size = UDim2.new(1.0000006, 0, 11.2, 0)
  236.  
  237. EspStatus.Name = getrandomstring()
  238. EspStatus.Parent = Main
  239. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  240. EspStatus.BackgroundTransparency = 1
  241. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)
  242. EspStatus.Font = Enum.Font.ArialBold
  243. EspStatus.Text = "Press T to update Esp"
  244. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  245. EspStatus.TextScaled = true
  246. EspStatus.TextSize = 14
  247. EspStatus.TextWrapped = true
  248.  
  249. st1.Name = getrandomstring()
  250. st1.Parent = Main
  251. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  252. st1.BackgroundTransparency = 1
  253. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  254. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  255. st1.Font = Enum.Font.ArialBold
  256. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"
  257. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  258. st1.TextScaled = true
  259. st1.TextSize = 14
  260. st1.TextWrapped = true
  261.  
  262. st1_2.Name = getrandomstring()
  263. st1_2.Parent = Main
  264. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  265. st1_2.BackgroundTransparency = 1
  266. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
  267. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  268. st1_2.Font = Enum.Font.ArialBold
  269. st1_2.Text = "Press L to enable esp loop. Press Y to disable/enable aimbot hider"
  270. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  271. st1_2.TextScaled = true
  272. st1_2.TextSize = 14
  273. st1_2.TextWrapped = true
  274.  
  275. local aimbothiderbox = Instance.new("TextBox")
  276. aimbothiderbox.Name = getrandomstring()
  277. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  278. aimbothiderbox.Size = UDim2.new(1, 0,0.162, 0)
  279. aimbothiderbox.TextScaled = true
  280. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  281. aimbothiderbox.Position = UDim2.new(0, 0,0.853, 0)
  282. aimbothiderbox.BackgroundTransparency = 1
  283. aimbothiderbox.Parent = Main
  284.  
  285. st1_3.Name = getrandomstring()
  286. st1_3.Parent = Main
  287. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  288. st1_3.BackgroundTransparency = 1
  289. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
  290. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  291. st1_3.Font = Enum.Font.ArialBold
  292. st1_3.Text = "Press O to change team based mode"
  293. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  294. st1_3.TextScaled = true
  295. st1_3.TextSize = 14
  296. st1_3.TextWrapped = true
  297. local teambasedstatus = st1_3:Clone()
  298. teambasedstatus.Parent = Main
  299. teambasedstatus.TextScaled = true
  300. teambasedstatus.Position = UDim2.new(0, 0,.7, 0)
  301. teambasedstatus.Size = UDim2.new(1, 0,.1, 0)
  302. teambasedstatus.Name = getrandomstring()
  303. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  304. local espstatustext = teambasedstatus:Clone()
  305. espstatustext.Name = getrandomstring()
  306. espstatustext.Position = UDim2.new(0, 0,0.58, 0)
  307. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  308. espstatustext.Parent = Main
  309. local hide = Instance.new("TextButton")
  310. hide.Text = "_"
  311. hide.BackgroundTransparency = 1
  312. hide.TextScaled = true
  313. hide.TextWrapped = true
  314. hide.Size = UDim2.new(0.1, 0,1, 0)
  315. hide.Position = UDim2.new(0.9, 0,-0.15, 0)
  316. hide.Name = getrandomstring()
  317. hide.Parent = Move
  318. Name.Name = getrandomstring()
  319. Name.Parent = Move
  320. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  321. Name.BackgroundTransparency = 1
  322. Name.Size = UDim2.new(0.838, 0, 1, 0)
  323. Name.Font = Enum.Font.Arial
  324. Name.Text = "FPS gui v"..ver
  325. Name.TextColor3 = Color3.new(0, 0, 0)
  326. Name.TextScaled = true
  327. Name.TextSize = 14
  328. Name.TextWrapped = true
  329. Name.TextXAlignment = Enum.TextXAlignment.Left
  330. local scr = Instance.new("ScrollingFrame")
  331. scr.Size = Main.Size
  332. scr.Position = Main.Position
  333. scr.ScrollBarThickness = 0
  334. scr.BackgroundTransparency = 1
  335. scr.Name = getrandomstring()
  336. Main.Size = UDim2.new(1, 0, 1, 0)
  337. Main.Position = UDim2.new(0,0,0,0)
  338. Main.Parent = scr
  339. scr.Parent = Move
  340. startpos = Main.Position
  341. Move.Active = true
  342.  
  343. -- Scripts:
  344. hided = false
  345. hide.MouseButton1Click:Connect(function()
  346. if hided == false then
  347. hided = true
  348. Main:TweenPosition(UDim2.new(0, 0, -1.5, 0))
  349. else
  350. hided = false
  351. Main:TweenPosition(startpos)
  352. end
  353. end)
  354.  
  355.  
  356. aimbothiderbox.FocusLost:Connect(function()
  357. local numb = tonumber(aimbothiderbox.Text)
  358. if aimbothider == true then
  359. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  360. else
  361. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  362. end
  363. if numb ~= nil then
  364. aimbothiderspeed = numb
  365. if aimbothider == true then
  366. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  367. else
  368. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  369. end
  370. else
  371. if aimbothider == true then
  372. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  373. else
  374. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  375. end
  376. end
  377. end)
  378.  
  379.  
  380. local plrsforaim = {}
  381.  
  382.  
  383. Move.Draggable = true
  384. Gui.ResetOnSpawn = false
  385. --Gui.Name = "Chat"
  386. Gui.DisplayOrder = 999
  387. if not game:GetService("CoreGui") then
  388. Gui.Parent = plrs.LocalPlayer.PlayerGui
  389. else
  390. Gui.Parent = game:GetService("CoreGui")
  391. end
  392.  
  393.  
  394.  
  395.  
  396.  
  397. f = {}
  398. local espforlder
  399. local partconverter = Instance.new("Part")
  400.  
  401. f.addesp = function()
  402. pcall(function()
  403. --print("ESP ran")
  404. if espforlder then
  405. espforlder:Destroy()
  406. espforlder = Instance.new("Folder")
  407. espforlder.Parent = game.Workspace.CurrentCamera
  408. else
  409. espforlder = Instance.new("Folder")
  410. espforlder.Parent = game.Workspace.CurrentCamera
  411. end
  412. for i, v in pairs(espforlder:GetChildren()) do
  413. v:Destroy()
  414. end
  415. for _, plr in pairs(plrs:GetChildren()) do
  416. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  417. if TeamBased == true then
  418. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  419. local e = espforlder:FindFirstChild(plr.Name)
  420. if not e then
  421. local fold = Instance.new("Folder", espforlder)
  422. fold.Name = plr.Name
  423.  
  424. --partconverter.BrickColor = plr.Team.Color
  425. --local teamc = partconverter.Color
  426. for i, p in pairs(plr.Character:GetChildren()) do
  427. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  428. local urmom = Instance.new("BoxHandleAdornment")
  429. urmom.ZIndex = 10
  430. urmom.AlwaysOnTop = true
  431. urmom.Color3 = espcolor
  432. urmom.Size = p.Size
  433. urmom.Adornee = p
  434. urmom.Name = tick().." Ur mom has big gay"
  435. urmom.Transparency = wallhack_esp_transparency
  436. urmom.Parent = fold
  437.  
  438. end
  439. end
  440. plr.Character.Humanoid.Died:Connect(function()
  441. fold:Destroy()
  442. end)
  443. end
  444. end
  445. else
  446. local e = espforlder:FindFirstChild(plr.Name)
  447. if not e then
  448. local fold = Instance.new("Folder", espforlder)
  449. fold.Name = plr.Name
  450.  
  451. --partconverter.BrickColor = plr.Team.Color
  452. --local teamc = Move.BackgroundColor3
  453. for i, p in pairs(plr.Character:GetChildren()) do
  454. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  455. local urmom = Instance.new("BoxHandleAdornment")
  456. urmom.ZIndex = 10
  457. urmom.AlwaysOnTop = true
  458. urmom.Color3 = espcolor
  459. urmom.Size = p.Size
  460. urmom.Adornee = p
  461. urmom.Name = tick().." Ur mom has big gay"
  462. urmom.Transparency = wallhack_esp_transparency
  463. urmom.Parent = fold
  464. end
  465. end
  466. plr.Character.Humanoid.Died:Connect(function()
  467. fold:Destroy()
  468. end)
  469. end
  470. end
  471.  
  472.  
  473. end
  474. end
  475. end)
  476. end
  477. local uis = game:GetService("UserInputService")
  478. local bringall = false
  479. local hided2 = false
  480. mouse.KeyDown:Connect(function(a)
  481. if a == "t" then
  482. --print("worked1")
  483. f.addesp()
  484. elseif a == gui_hide_button[2] and uis:IsKeyDown(gui_hide_button[1]) then
  485. if hided2 == false then
  486. hided2 = true
  487. autoesp =false
  488. if espforlder then
  489. espforlder:Destroy()
  490. end
  491. Gui.Enabled = false
  492. else
  493. Gui.Enabled = true
  494. hided2 = false
  495. end
  496. elseif a == "u" then
  497. if mouselock == false then
  498. mouselock = true
  499. else
  500. mouselock = false
  501. end
  502. elseif a == "y" then
  503. if aimbothider == false then
  504. aimbothider = true
  505. if aimbothider == true then
  506. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  507. else
  508. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  509. end
  510. else
  511.  
  512. aimbothider = false
  513. if aimbothider == true then
  514. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  515. else
  516. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  517. end
  518. end
  519. if aimbothider == true then
  520. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  521. else
  522. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  523. end
  524. elseif a == "l" then
  525. if autoesp == false then
  526. autoesp = true
  527. else
  528. autoesp = false
  529. end
  530. elseif a == Aim_Assist_Key[2] and uis:IsKeyDown(Aim_Assist_Key[1]) then
  531. if Aim_Assist == true then
  532. Aim_Assist = false
  533. --print("disabled")
  534. else
  535. Aim_Assist = true
  536. end
  537. end
  538. if a == "j" then
  539. if mouse.Target then
  540. mouse.Target:Destroy()
  541. end
  542. end
  543. if a == key then
  544. if switch == false then
  545. switch = true
  546. else
  547. switch = false
  548. if aimatpart ~= nil then
  549. aimatpart = nil
  550. end
  551. end
  552. elseif a == teambasedswitch then
  553. if TeamBased == true then
  554. TeamBased = false
  555. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  556. else
  557. TeamBased = true
  558. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  559. end
  560. elseif a == aimkey then
  561. if not aimatpart then
  562. local maxangle = math.rad(20)
  563. for i, plr in pairs(plrs:GetChildren()) do
  564. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  565. if TeamBased == true then
  566. if plr.Team.Name ~= lplr.Team.Name then
  567. local an = checkfov(plr.Character.Head)
  568. if an < maxangle then
  569. maxangle = an
  570. aimatpart = plr.Character.Head
  571. end
  572. end
  573. else
  574. local an = checkfov(plr.Character.Head)
  575. if an < maxangle then
  576. maxangle = an
  577. aimatpart = plr.Character.Head
  578. end
  579. --print(plr)
  580. end
  581. local old = aimatpart
  582. plr.Character.Humanoid.Died:Connect(function()
  583. --print("died")
  584. if aimatpart and aimatpart == old then
  585. aimatpart = nil
  586. end
  587. end)
  588.  
  589. end
  590. end
  591. else
  592. aimatpart = nil
  593. canaimat = false
  594. delay(1.1, function()
  595. canaimat = true
  596. end)
  597. end
  598. end
  599. end)
  600.  
  601. function getfovxyz (p0, p1, deg)
  602. local x1, y1, z1 = p0:ToOrientation()
  603. local cf = CFrame.new(p0.p, p1.p)
  604. local x2, y2, z2 = cf:ToOrientation()
  605. local d = math.deg
  606. if deg then
  607. return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  608. else
  609. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  610. end
  611. end
  612.  
  613.  
  614. function aimat(part)
  615. if part then
  616. if aimbothider == true or Aim_Assist == true then
  617. cam.CFrame = cam.CFrame:Lerp(CFrame.new(cam.CFrame.p, part.CFrame.p), aimbothiderspeed)
  618. else
  619.  
  620. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  621. end
  622. end
  623. end
  624. function checkfov (part)
  625. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  626. local angle = math.abs(fov.X) + math.abs(fov.Y)
  627. return angle
  628. end
  629. pcall(function()
  630. delay(0, function()
  631. while wait(.4) do
  632. if Aim_Assist and not aimatpart and canaimat and lplr.Character and lplr.Character.Humanoid and lplr.Character.Humanoid.Health > 0 then
  633. for i, plr in pairs(plrs:GetChildren()) do
  634.  
  635.  
  636. local minangle = math.rad(5.5)
  637. local lastpart = nil
  638. local function gg(plr)
  639. pcall(function()
  640. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Character.Head then
  641. local raycasted = false
  642. local cf1 = CFrame.new(cam.CFrame.p, plr.Character.Head.CFrame.p) * CFrame.new(0, 0, -4)
  643. local r1 = Ray.new(cf1.p, cf1.LookVector * 9000)
  644. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})
  645. local dist = (plr.Character.Head.CFrame.p- pos).magnitude
  646. if dist < 4 then
  647. raycasted = true
  648. end
  649. if raycasted == true then
  650. local an1 = getfovxyz(cam.CFrame, plr.Character.Head.CFrame)
  651. local an = abs(an1.X) + abs(an1.Y)
  652. if an < minangle then
  653. minangle = an
  654. lastpart = plr.Character.Head
  655. end
  656. end
  657. end
  658. end)
  659. end
  660. if TeamBased then
  661. if plr.Team.Name ~= lplr.Team.Name then
  662. gg(plr)
  663. end
  664. else
  665. gg(plr)
  666. end
  667. --print(math.deg(minangle))
  668. if lastpart then
  669. aimatpart = lastpart
  670. aimatpart.Parent.Humanoid.Died:Connect(function()
  671. if aimatpart == lastpart then
  672. aimatpart = nil
  673. end
  674. end)
  675.  
  676. end
  677. end
  678. end
  679. end
  680. end)
  681. end)
  682. local oldheadpos
  683. local lastaimapart
  684. game:GetService("RunService").RenderStepped:Connect(function()
  685. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  686. if aimatpart and lplr.Character and lplr.Character.Head then
  687. if BetterDeathCount and lastaimapart and lastaimapart == aimatpart then
  688. local dist = (oldheadpos - aimatpart.CFrame.p).magnitude
  689. if dist > 40 then
  690. aimatpart = nil
  691. end
  692. end
  693. lastaimapart = aimatpart
  694. oldheadpos = lastaimapart.CFrame.p
  695. do
  696. if aimatpart.Parent == plrs.LocalPlayer.Character then
  697. aimatpart = nil
  698. end
  699. aimat(aimatpart)
  700. pcall(function()
  701. if Aim_Assist == true then
  702. local cf1 = CFrame.new(cam.CFrame.p, aimatpart.CFrame.p) * CFrame.new(0, 0, -4)
  703. local r1 = Ray.new(cf1.p, cf1.LookVector * 1000)
  704. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})
  705. local dist = (aimatpart.CFrame.p- pos).magnitude
  706. if obj then
  707. --print(obj:GetFullName())
  708. end
  709. if not obj or dist > 6 then
  710. aimatpart = nil
  711. --print("ooof")
  712. end
  713. canaimat = false
  714. delay(.5, function()
  715. canaimat = true
  716. end)
  717. end
  718. end)
  719. end
  720.  
  721.  
  722.  
  723. end
  724. end)
  725. delay(0, function()
  726. while wait(espupdatetime) do
  727. if autoesp == true then
  728. pcall(function()
  729. f.addesp()
  730. end)
  731. end
  732. end
  733. end)
  734. --warn("loaded")
  735. end)
  736. end)
  737.  
  738.  
  739.  
  740.  
  741. Noclip.MouseButton1Down:connect(function()
  742. nam = game:GetService("Players").LocalPlayer.Name
  743.  
  744. game:GetService('RunService').Stepped:connect(function()
  745. for a, b in pairs(game.Workspace:GetChildren()) do
  746. if b.Name == nam then
  747. for i, v in pairs(game.Workspace[nam]:GetChildren()) do
  748. if v:IsA("BasePart") then
  749. v.CanCollide = false
  750.  
  751. end
  752. end
  753. end
  754. end
  755. end)
  756.  
  757.  
  758. Workspace[nam].Head.Changed:connect(function()
  759. for a, b in pairs(game.Workspace:GetChildren()) do
  760. if b.Name == nam then
  761. for i, v in pairs(game.Workspace[nam]:GetChildren()) do
  762. if v:IsA("BasePart") then
  763. v.CanCollide = false
  764.  
  765. end
  766. end
  767. end
  768. end
  769. end)
  770. end)
  771.  
  772.  
  773.  
  774. fly.MouseButton1Down:connect(function()
  775. repeat wait()
  776. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  777. local mouse = game.Players.LocalPlayer:GetMouse()
  778. repeat wait() until mouse
  779. local plr = game.Players.LocalPlayer
  780. local torso = plr.Character.Torso
  781. local flying = true
  782. local deb = true
  783. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  784. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  785. local maxspeed = 100
  786. local speed = 0
  787.  
  788. function Fly()
  789. local bg = Instance.new("BodyGyro", torso)
  790. bg.P = 9e4
  791. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  792. bg.cframe = torso.CFrame
  793. local bv = Instance.new("BodyVelocity", torso)
  794. bv.velocity = Vector3.new(0,0.1,0)
  795. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  796. repeat wait()
  797. plr.Character.Humanoid.PlatformStand = true
  798. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  799. speed = speed+.5+(speed/maxspeed)
  800. if speed > maxspeed then
  801. speed = maxspeed
  802. end
  803. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  804. speed = speed-1
  805. if speed < 0 then
  806. speed = 0
  807. end
  808. end
  809. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  810. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  811. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  812. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  813. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  814. else
  815. bv.velocity = Vector3.new(0,0.1,0)
  816. end
  817. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  818. until not flying
  819. ctrl = {f = 0, b = 0, l = 0, r = 0}
  820. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  821. speed = 0
  822. bg:Destroy()
  823. bv:Destroy()
  824. plr.Character.Humanoid.PlatformStand = false
  825. end
  826. mouse.KeyDown:connect(function(key)
  827. if key:lower() == "e" then
  828. if flying then flying = false
  829. else
  830. flying = true
  831. Fly()
  832. end
  833. elseif key:lower() == "w" then
  834. ctrl.f = 1
  835. elseif key:lower() == "s" then
  836. ctrl.b = -1
  837. elseif key:lower() == "a" then
  838. ctrl.l = -1
  839. elseif key:lower() == "d" then
  840. ctrl.r = 1
  841. end
  842. end)
  843. mouse.KeyUp:connect(function(key)
  844. if key:lower() == "w" then
  845. ctrl.f = 0
  846. elseif key:lower() == "s" then
  847. ctrl.b = 0
  848. elseif key:lower() == "a" then
  849. ctrl.l = 0
  850. elseif key:lower() == "d" then
  851. ctrl.r = 0
  852. end
  853. end)
  854. Fly()
  855. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement