Advertisement
Guest User

Arsenal GUI

a guest
Jan 2nd, 2020
65,553
2
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.46 KB | None | 2 0
  1. -- Gui to Lua
  2. -- Version: 3.1
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local OpenFrame = Instance.new("Frame")
  8. local Open = Instance.new("TextButton")
  9. local Main = Instance.new("Frame")
  10. local TopBar = Instance.new("Frame")
  11. local Credits = Instance.new("TextLabel")
  12. local Side2 = Instance.new("Frame")
  13. local Side1 = Instance.new("Frame")
  14. local Bottom = Instance.new("Frame")
  15. local Close = Instance.new("TextButton")
  16. local RandomGUI = Instance.new("TextLabel")
  17. local CHEAT1 = Instance.new("TextButton")
  18. local CHEAT2 = Instance.new("TextButton")
  19. local CHEAT1_2 = Instance.new("TextButton")
  20.  
  21. --Properties:
  22.  
  23. ScreenGui.Parent = game.CoreGui
  24.  
  25. OpenFrame.Name = "OpenFrame"
  26. OpenFrame.Parent = ScreenGui
  27. OpenFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  28. OpenFrame.BorderSizePixel = 0
  29. OpenFrame.Position = UDim2.new(0.0194300562, 0, 0.229645088, 0)
  30. OpenFrame.Size = UDim2.new(0, 60, 0, 60)
  31.  
  32. Open.Name = "Open"
  33. Open.Parent = OpenFrame
  34. Open.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  35. Open.BorderSizePixel = 0
  36. Open.Position = UDim2.new(0.0833331719, 0, 0.183333337, 0)
  37. Open.Size = UDim2.new(0, 50, 0, 38)
  38. Open.Font = Enum.Font.Cartoon
  39. Open.TextColor3 = Color3.fromRGB(255, 255, 255)
  40. Open.TextScaled = true
  41. Open.TextSize = 14.000
  42. Open.TextWrapped = true
  43. Open.MouseButton1Down:connect(function()
  44. Main.Visible = true
  45. OpenFrame.Visible = false
  46. end)
  47.  
  48. Main.Name = "Main"
  49. Main.Parent = ScreenGui
  50. Main.BackgroundColor3 = Color3.fromRGB(170, 170, 170)
  51. Main.BackgroundTransparency = 0.500
  52. Main.BorderSizePixel = 0
  53. Main.Position = UDim2.new(0.37176165, 0, 0.202505216, 0)
  54. Main.Size = UDim2.new(0, 283, 0, 269)
  55. Main.Visible = false
  56. Main.Draggable = true
  57.  
  58. TopBar.Name = "TopBar"
  59. TopBar.Parent = Main
  60. TopBar.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  61. TopBar.BorderSizePixel = 0
  62. TopBar.Size = UDim2.new(0, 283, 0, 27)
  63.  
  64. Credits.Name = "Credits"
  65. Credits.Parent = Main
  66. Credits.BackgroundColor3 = Color3.fromRGB(85, 85, 127)
  67. Credits.BorderSizePixel = 0
  68. Credits.Position = UDim2.new(0, 0, 1, 0)
  69. Credits.Size = UDim2.new(0, 283, 0, 37)
  70. Credits.Font = Enum.Font.Cartoon
  71. Credits.Text = "Discord- ToX1K_Spicy#7634"
  72. Credits.TextColor3 = Color3.fromRGB(255, 255, 255)
  73. Credits.TextScaled = true
  74. Credits.TextSize = 14.000
  75. Credits.TextWrapped = true
  76.  
  77. Side2.Name = "Side2"
  78. Side2.Parent = Main
  79. Side2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  80. Side2.BorderSizePixel = 0
  81. Side2.Position = UDim2.new(-0.0459363945, 0, 0, 0)
  82. Side2.Size = UDim2.new(0, 13, 0, 306)
  83.  
  84. Side1.Name = "Side1"
  85. Side1.Parent = Main
  86. Side1.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  87. Side1.BorderSizePixel = 0
  88. Side1.Position = UDim2.new(0.99999994, 0, 0, 0)
  89. Side1.Size = UDim2.new(0, 13, 0, 306)
  90.  
  91. Bottom.Name = "Bottom"
  92. Bottom.Parent = Main
  93. Bottom.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  94. Bottom.BorderSizePixel = 0
  95. Bottom.Position = UDim2.new(-0.0459363945, 0, 1.13754642, 0)
  96. Bottom.Size = UDim2.new(0, 309, 0, 13)
  97.  
  98. Close.Name = "Close"
  99. Close.Parent = Main
  100. Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  101. Close.BackgroundTransparency = 1.000
  102. Close.Position = UDim2.new(0.904593706, 0, -5.96046448e-08, 0)
  103. Close.Size = UDim2.new(0, 27, 0, 27)
  104. Close.Font = Enum.Font.Cartoon
  105. Close.Text = "X"
  106. Close.TextColor3 = Color3.fromRGB(170, 0, 0)
  107. Close.TextScaled = true
  108. Close.TextSize = 14.000
  109. Close.TextWrapped = true
  110. Close.MouseButton1Down:connect(function()
  111. OpenFrame.Visible = true
  112. Main.Visible = false
  113. end)
  114.  
  115. RandomGUI.Name = "RandomGUI"
  116. RandomGUI.Parent = Main
  117. RandomGUI.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  118. RandomGUI.BackgroundTransparency = 1.000
  119. RandomGUI.BorderSizePixel = 0
  120. RandomGUI.Position = UDim2.new(0.289752662, 0, 0.00743496418, 0)
  121. RandomGUI.Size = UDim2.new(0, 134, 0, 22)
  122. RandomGUI.Font = Enum.Font.Code
  123. RandomGUI.Text = "Arsenal Gui"
  124. RandomGUI.TextColor3 = Color3.fromRGB(255, 255, 255)
  125. RandomGUI.TextScaled = true
  126. RandomGUI.TextSize = 14.000
  127. RandomGUI.TextWrapped = true
  128.  
  129. ESP.Name = "ESP"
  130. ESP.Parent = Main
  131. ESP.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  132. ESP.BorderSizePixel = 0
  133. ESP.Position = UDim2.new(0.0424028262, 0, 0.230483279, 0)
  134. ESP.Size = UDim2.new(0, 103, 0, 40)
  135. ESP.Font = Enum.Font.Cartoon
  136. ESP.Text = "ESP"
  137. ESP.TextColor3 = Color3.fromRGB(255, 255, 255)
  138. ESP.TextScaled = true
  139. ESP.TextSize = 14.000
  140. ESP.TextWrapped = true
  141. ESP.MouseButton1Down:connect(function()
  142. local Holder = Instance.new("Folder", game.CoreGui)
  143. Holder.Name = "ESP"
  144.  
  145. local Box = Instance.new("BoxHandleAdornment")
  146. Box.Name = "nilBox"
  147. Box.Size = Vector3.new(4, 7, 4)
  148. Box.Color3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
  149. Box.Transparency = 0.7
  150. Box.ZIndex = 0
  151. Box.AlwaysOnTop = true
  152. Box.Visible = true
  153.  
  154. local NameTag = Instance.new("BillboardGui")
  155. NameTag.Name = "nilNameTag"
  156. NameTag.Enabled = false
  157. NameTag.Size = UDim2.new(0, 200, 0, 50)
  158. NameTag.AlwaysOnTop = true
  159. NameTag.StudsOffset = Vector3.new(0, 1.8, 0)
  160. local Tag = Instance.new("TextLabel", NameTag)
  161. Tag.Name = "Tag"
  162. Tag.BackgroundTransparency = 1
  163. Tag.Position = UDim2.new(0, -50, 0, 0)
  164. Tag.Size = UDim2.new(0, 300, 0, 20)
  165. Tag.TextSize = 20
  166. Tag.TextColor3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
  167. Tag.TextStrokeColor3 = Color3.new(0 / 255, 0 / 255, 0 / 255)
  168. Tag.TextStrokeTransparency = 0.4
  169. Tag.Text = "nil"
  170. Tag.Font = Enum.Font.SourceSansBold
  171. Tag.TextScaled = false
  172.  
  173. local LoadCharacter = function(v)
  174. repeat wait() until v.Character ~= nil
  175. v.Character:WaitForChild("Humanoid")
  176. local vHolder = Holder:FindFirstChild(v.Name)
  177. vHolder:ClearAllChildren()
  178. local b = Box:Clone()
  179. b.Name = v.Name .. "Box"
  180. b.Adornee = v.Character
  181. b.Parent = vHolder
  182. local t = NameTag:Clone()
  183. t.Name = v.Name .. "NameTag"
  184. t.Enabled = true
  185. t.Parent = vHolder
  186. t.Adornee = v.Character:WaitForChild("Head", 5)
  187. if not t.Adornee then
  188. return UnloadCharacter(v)
  189. end
  190. t.Tag.Text = v.Name
  191. b.Color3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  192. t.Tag.TextColor3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  193. local Update
  194. local UpdateNameTag = function()
  195. if not pcall(function()
  196. v.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  197. local maxh = math.floor(v.Character.Humanoid.MaxHealth)
  198. local h = math.floor(v.Character.Humanoid.Health)
  199. t.Tag.Text = v.Name .. "\n" .. ((maxh ~= 0 and tostring(math.floor((h / maxh) * 100))) or "0") .. "% " .. tostring(h) .. "/" .. tostring(maxh)
  200. end) then
  201. Update:Disconnect()
  202. end
  203. end
  204. UpdateNameTag()
  205. Update = v.Character.Humanoid.Changed:Connect(UpdateNameTag)
  206. end
  207.  
  208. local UnloadCharacter = function(v)
  209. local vHolder = Holder:FindFirstChild(v.Name)
  210. if vHolder and (vHolder:FindFirstChild(v.Name .. "Box") ~= nil or vHolder:FindFirstChild(v.Name .. "NameTag") ~= nil) then
  211. vHolder:ClearAllChildren()
  212. end
  213. end
  214.  
  215. local LoadPlayer = function(v)
  216. local vHolder = Instance.new("Folder", Holder)
  217. vHolder.Name = v.Name
  218. v.CharacterAdded:Connect(function()
  219. pcall(LoadCharacter, v)
  220. end)
  221. v.CharacterRemoving:Connect(function()
  222. pcall(UnloadCharacter, v)
  223. end)
  224. v.Changed:Connect(function(prop)
  225. if prop == "TeamColor" then
  226. UnloadCharacter(v)
  227. wait()
  228. LoadCharacter(v)
  229. end
  230. end)
  231. LoadCharacter(v)
  232. end
  233.  
  234. local UnloadPlayer = function(v)
  235. UnloadCharacter(v)
  236. local vHolder = Holder:FindFirstChild(v.Name)
  237. if vHolder then
  238. vHolder:Destroy()
  239. end
  240. end
  241.  
  242. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  243. spawn(function() pcall(LoadPlayer, v) end)
  244. end
  245.  
  246. game:GetService("Players").PlayerAdded:Connect(function(v)
  247. pcall(LoadPlayer, v)
  248. end)
  249.  
  250. game:GetService("Players").PlayerRemoving:Connect(function(v)
  251. pcall(UnloadPlayer, v)
  252. end)
  253.  
  254. game:GetService("Players").LocalPlayer.NameDisplayDistance = 0
  255. end)
  256.  
  257. Aim.Name = "Aim"
  258. Aim.Parent = Main
  259. Aim.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  260. Aim.BorderSizePixel = 0
  261. Aim.Position = UDim2.new(0.540636063, 0, 0.230483279, 0)
  262. Aim.Size = UDim2.new(0, 103, 0, 40)
  263. Aim.Font = Enum.Font.Cartoon
  264. Aim.Text = "AIMBOT (Hold \"E\")"
  265. Aim.TextColor3 = Color3.fromRGB(255, 255, 255)
  266. Aim.TextScaled = true
  267. Aim.TextSize = 14.000
  268. Aim.TextWrapped = true
  269. Aim.MouseButton1Down:connect(function()
  270. local plrs = game:GetService("Players")
  271. local TeamBased = true ; local teambasedswitch = "o"
  272. local presskeytoaim = true; local aimkey = "e"
  273. local raycast = false
  274.  
  275. local espupdatetime = 5; autoesp = false
  276.  
  277.  
  278.  
  279. local lockaim = true; local lockangle = 5
  280.  
  281.  
  282.  
  283. --function findwat(folder, what)
  284. -- for i, smth in pairs(folder:GetChildren()) do
  285. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then
  286. -- return smth
  287. -- end
  288. -- end
  289. --end
  290. --
  291. --local plrs = findwat(game, "Players")
  292.  
  293.  
  294.  
  295.  
  296. local Gui = Instance.new("ScreenGui")
  297. local Move = Instance.new("Frame")
  298. local Main = Instance.new("Frame")
  299. local EspStatus = Instance.new("TextLabel")
  300. local st1 = Instance.new("TextLabel")
  301. local st1_2 = Instance.new("TextLabel")
  302. local st1_3 = Instance.new("TextLabel")
  303. local Name = Instance.new("TextLabel")
  304. --Properties:
  305. Gui.Name = "Gui"
  306. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  307.  
  308. Move.Name = "Move"
  309. Move.Parent = Gui
  310. Move.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  311. Move.BackgroundTransparency = 1
  312. Move.BorderSizePixel = 0
  313. Move.Draggable = true
  314. Move.Position = UDim2.new(0.005, 0, -0.15, 0)
  315. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  316.  
  317. Main.Name = "Main"
  318. Main.Parent = Move
  319. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  320. Main.Position = UDim2.new(0, 0, 0, 0)
  321. Main.Size = UDim2.new(0, 0, 0, 0)
  322. Main.Style = Enum.FrameStyle.RobloxSquare
  323.  
  324. EspStatus.Name = "EspStatus"
  325. EspStatus.Parent = Main
  326. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  327. EspStatus.BackgroundTransparency = 1
  328. EspStatus.Position = UDim2.new(0, 0, 0.300000012, 0)
  329. EspStatus.Size = UDim2.new(1, 0, 0.162, 0)
  330. EspStatus.Font = Enum.Font.ArialBold
  331. EspStatus.Text = "Press O to change team based mode"
  332. EspStatus.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  333. EspStatus.TextScaled = true
  334. EspStatus.TextWrapped = true
  335.  
  336. st1.Name = "st1"
  337. st1.Parent = Main
  338. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  339. st1.BackgroundTransparency = 1
  340. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  341. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  342. st1.Font = Enum.Font.ArialBold
  343. st1.Text = ""
  344. st1.TextColor3 = Color3.new(0.0784314, 0.541176, 0)
  345. st1.TextScaled = true
  346. st1.TextSize = 14
  347. st1.TextWrapped = true
  348.  
  349. -- Scripts:
  350.  
  351.  
  352. local plrsforaim = {}
  353.  
  354. local lplr = game:GetService("Players").LocalPlayer
  355. Move.Draggable = true
  356. Gui.ResetOnSpawn = false
  357. Gui.Name = "Chat"
  358. Gui.DisplayOrder = 999
  359.  
  360. Gui.Parent = plrs.LocalPlayer.PlayerGui
  361.  
  362.  
  363. f = {}
  364. local espforlder
  365.  
  366. f.addesp = function()
  367. --print("ESP ran")
  368. if espforlder then
  369. else
  370. espforlder = Instance.new("Folder")
  371. espforlder.Parent = game.Workspace.CurrentCamera
  372. end
  373. for i, v in pairs(espforlder:GetChildren()) do
  374. v:Destroy()
  375. end
  376. for _, plr in pairs(plrs:GetChildren()) do
  377. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  378. if TeamBased == true then
  379. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  380. local e = espforlder:FindFirstChild(plr.Name)
  381. if not e then
  382. --print("Added esp for team based")
  383. local bill = Instance.new("BillboardGui", espforlder)
  384. bill.Name = plr.Name
  385. bill.AlwaysOnTop = true
  386. bill.Size = UDim2.new(1,0,1,0)
  387. bill.Adornee = plr.Character.Head
  388. local Frame = Instance.new('Frame',bill)
  389. Frame.Active = true
  390. Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  391. Frame.BackgroundTransparency = 0
  392. Frame.BorderSizePixel = 0
  393. Frame.AnchorPoint = Vector2.new(.5, .5)
  394. Frame.Position = UDim2.new (0.5,0,0.5,0)
  395. Frame.Size = UDim2.new (1,0,1,0)
  396. Frame.Rotation = 0
  397. plr.Character.Humanoid.Died:Connect(function()
  398. bill:Destroy()
  399. end)
  400. end
  401. end
  402. else
  403. local e = espforlder:FindFirstChild(plr.Name)
  404. if not e then
  405. --print("Added esp")
  406. local bill = Instance.new("BillboardGui", espforlder)
  407. bill.Name = plr.Name
  408. bill.AlwaysOnTop = true
  409. bill.Size = UDim2.new(1,0,1,0)
  410. bill.Adornee = plr.Character.Head
  411. local Frame = Instance.new('Frame',bill)
  412. Frame.Active = true
  413. Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  414. Frame.BackgroundTransparency = 0
  415. Frame.BorderSizePixel = 0
  416. Frame.AnchorPoint = Vector2.new(.5, .5)
  417. Frame.Position = UDim2.new (0.5,0,0.5,0)
  418. Frame.Size = UDim2.new (1,0,1,0)
  419. Frame.Rotation = 0
  420. plr.Character.Humanoid.Died:Connect(function()
  421. bill:Destroy()
  422. end)
  423. end
  424. end
  425.  
  426.  
  427. end
  428. end
  429. end
  430. local cam = game.Workspace.CurrentCamera
  431.  
  432. local mouse = lplr:GetMouse()
  433. local switch = false
  434. local key = "k"
  435. local aimatpart = nil
  436. mouse.KeyDown:Connect(function(a)
  437. if a == "t" then
  438. print("worked1")
  439. f.addesp()
  440. elseif a == "u" then
  441. if raycast == true then
  442. raycast = false
  443. else
  444. raycast = true
  445. end
  446. elseif a == "l" then
  447. if autoesp == false then
  448. autoesp = true
  449. else
  450. autoesp = false
  451. end
  452. end
  453. if a == "j" then
  454. if mouse.Target then
  455. mouse.Target:Destroy()
  456. end
  457. end
  458. if a == key then
  459. if switch == false then
  460. switch = true
  461. else
  462. switch = false
  463. if aimatpart ~= nil then
  464. aimatpart = nil
  465. end
  466. end
  467. elseif a == teambasedswitch then
  468. if TeamBased == true then
  469. TeamBased = false
  470. teambasedstatus.Text = tostring(TeamBased)
  471. else
  472. TeamBased = true
  473. teambasedstatus.Text = tostring(TeamBased)
  474. end
  475. elseif a == aimkey then
  476. if not aimatpart then
  477. local maxangle = math.rad(20)
  478. for i, plr in pairs(plrs:GetChildren()) do
  479. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  480. if TeamBased == true then
  481. if plr.Team.Name ~= lplr.Team.Name then
  482. local an = checkfov(plr.Character.Head)
  483. if an < maxangle then
  484. maxangle = an
  485. aimatpart = plr.Character.Head
  486. end
  487. end
  488. else
  489. local an = checkfov(plr.Character.Head)
  490. if an < maxangle then
  491. maxangle = an
  492. aimatpart = plr.Character.Head
  493. end
  494. print(plr)
  495. end
  496. plr.Character.Humanoid.Died:Connect(function()
  497. if aimatpart.Parent == plr.Character or aimatpart == nil then
  498. aimatpart = nil
  499. end
  500. end)
  501. end
  502. end
  503. else
  504. aimatpart = nil
  505. end
  506. end
  507. end)
  508.  
  509. function getfovxyz (p0, p1, deg)
  510. local x1, y1, z1 = p0:ToOrientation()
  511. local cf = CFrame.new(p0.p, p1.p)
  512. local x2, y2, z2 = cf:ToOrientation()
  513. --local d = math.deg
  514. if deg then
  515. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  516. else
  517. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  518. end
  519. end
  520.  
  521. function getaimbotplrs()
  522. plrsforaim = {}
  523. for i, plr in pairs(plrs:GetChildren()) do
  524. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  525.  
  526. if TeamBased == true then
  527. if plr.Team.Name ~= lplr.Team.Name then
  528. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  529. local r = Ray.new(cf, cf.LookVector * 10000)
  530. local ign = {}
  531. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  532. if v:IsA("BasePart") then
  533. table.insert(ign , v)
  534. end
  535. end
  536. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  537. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  538. table.insert(plrsforaim, obj)
  539. end
  540. end
  541. else
  542. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  543. local r = Ray.new(cf, cf.LookVector * 10000)
  544. local ign = {}
  545. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  546. if v:IsA("BasePart") then
  547. table.insert(ign , v)
  548. end
  549. end
  550. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  551. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  552. table.insert(plrsforaim, obj)
  553. end
  554. end
  555.  
  556.  
  557. end
  558. end
  559. end
  560.  
  561. function aimat(part)
  562. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  563. end
  564. function checkfov (part)
  565. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  566. local angle = math.abs(fov.X) + math.abs(fov.Y)
  567. return angle
  568. end
  569.  
  570. game:GetService("RunService").RenderStepped:Connect(function()
  571. if aimatpart then
  572. aimat(aimatpart)
  573. if aimatpart.Parent == plrs.LocalPlayer.Character then
  574. aimatpart = nil
  575. end
  576. end
  577.  
  578.  
  579. -- if switch == true then
  580. -- local maxangle = 99999
  581. --
  582. -- --print("Loop")
  583. -- if true and raycast == false then
  584. -- for i, plr in pairs(plrs:GetChildren()) do
  585. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  586. -- if TeamBased then
  587. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  588. -- local an = checkfov(plr.Character.Head)
  589. -- if an < maxangle then
  590. -- maxangle = an
  591. -- aimatpart = plr.Character.Head
  592. -- if an < lockangle then
  593. -- break
  594. -- end
  595. -- end
  596. -- end
  597. -- else
  598. -- local an = checkfov(plr.Character.Head)
  599. -- if an < maxangle then
  600. -- maxangle = an
  601. -- aimatpart = plr.Character.Head
  602. -- if an < lockangle then
  603. -- break
  604. -- end
  605. -- end
  606. -- end
  607. --
  608. --
  609. --
  610. --
  611. -- end
  612. -- end
  613. -- elseif raycast == true then
  614. --
  615. -- end
  616.  
  617. if raycast == true and switch == false and not aimatpart then
  618. getaimbotplrs()
  619. aimatpart = nil
  620. local maxangle = 999
  621. for i, v in ipairs(plrsforaim) do
  622. if v.Parent ~= lplr.Character then
  623. local an = checkfov(v)
  624. if an < maxangle and v ~= lplr.Character.Head then
  625. maxangle = an
  626. aimatpart = v
  627. print(v:GetFullName())
  628. v.Parent.Humanoid.Died:connect(function()
  629. aimatpart = nil
  630. end)
  631. end
  632. end
  633. end
  634.  
  635. end
  636. end)
  637. delay(0, function()
  638. while wait(espupdatetime) do
  639. if autoesp == true then
  640. pcall(function()
  641. f.addesp()
  642. end)
  643. end
  644. end
  645. end)
  646. warn("loaded")
  647. end)
  648.  
  649. Fly.Name = "Fly"
  650. Fly.Parent = Main
  651. Fly.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  652. Fly.BorderSizePixel = 0
  653. Fly.Position = UDim2.new(0.166077733, 0, 0.509293675, 0)
  654. Fly.Size = UDim2.new(0, 175, 0, 69)
  655. Fly.Font = Enum.Font.Cartoon
  656. Fly.Text = "Fly"
  657. Fly.TextColor3 = Color3.fromRGB(255, 255, 255)
  658. Fly.TextScaled = true
  659. Fly.TextSize = 14.000
  660. Fly.TextWrapped = true
  661. Fly.MouseButton1Down:connect(function()
  662. function cbFindIntegrityCheckChange(sender)
  663. --gui stuff - FLY HACK
  664. control_setEnabled(frmSESettings_cbRewatch, checkbox_getState(frmSESettings_cbFindIntegrityCheck)==cbChecked)
  665. control_setEnabled(frmSESettings_edtTime, checkbox_getState(frmSESettings_cbFindIntegrityCheck)==cbChecked)
  666. control_setEnabled(frmSESettings_lblMilliseconds, checkbox_getState(frmSESettings_cbFindIntegrityCheck)==cbChecked)
  667. end
  668.  
  669. function btnApplyClick(sender)
  670. stealthedit_FindIntegrity=checkbox_getState(frmSESettings_cbFindIntegrityCheck)==cbChecked
  671. stealthedit_Rewatch=checkbox_getState(frmSESettings_cbRewatch)==cbChecked
  672. stealthedit_RewatchTimer=tonumber(control_getCaption(frmSESettings_edtTime))
  673. end
  674.  
  675.  
  676. createFormFromFile(stealtheditpath..'sesettings.FRM')
  677. createFormFromFile(stealtheditpath..'results.FRM')
  678.  
  679.  
  680. function ShowSEWindow()
  681. if stealthedit_FindIntegrity==true then
  682. form_show(frmResults)
  683. end
  684. end
  685.  
  686. stealthedit_FindIntegrity=false --this variablename is queried by the stealthedit plugin to determine if the memory should be guarded on stealthedit (don't change it)
  687. --set to true if you wish it on by default. Also add this then:
  688. --checkbox_setState(frmSESettings_cbFindIntegrityCheck, cbChecked)
  689.  
  690. stealthedit_Rewatch=false
  691. stealthedit_RewatchTimer=100
  692.  
  693.  
  694.  
  695. function onreguard(sender)
  696. timer_setEnabled(sender, false)
  697. reguard()
  698. end
  699.  
  700.  
  701. se_events={}
  702.  
  703. function IntegrityUpdate(rax, rbx, rcx, rdx, rsi, rdi, rbp, rsp, rip, r8, r9, r10, r11, r12, r13, r14, r15, stackcopy, stacksize)
  704. --A page that was guarded has been accessed (and made unguarded)
  705. if (control_getVisible(frmResults)==false) then
  706. ShowSEWindow()
  707. end
  708.  
  709. --check if this rip address is already in the list, and if not, add it
  710.  
  711.  
  712. if (se_events[rip]==nil) then
  713. --new, add it (don't add/update any other ones with this rip, those don't come with a stackcopy/stacksize)
  714. se_events[rip]={rax=rax, rbx=rbx, rcx=rcx, rdx=rdx, rsi=rsi, rdi=rdi, rbp=rbp, rsp=rsp, rip=rip, r8=r8, r9=r9, r10=r10, r11=r11, r12=r12, r13=r13, r14=r14, r15=r15, stackcopy=stackcopy, stacksize=stacksize}
  715. local items=listbox_getItems(frmResults_lbAddresses)
  716. strings_add(items, string.format('%08X', rip))
  717.  
  718. if listbox_getItemIndex(frmResults_lbAddresses)==-1 then
  719. listbox_setItemIndex(frmResults_lbAddresses,0)
  720. end
  721. end
  722.  
  723.  
  724.  
  725. if (stealthedit_Rewatch) then
  726. if (reguardtimer==nil) then
  727. reguardtimer=createTimer(nil, false)
  728. timer_onTimer(reguardtimer, onreguard)
  729. end
  730.  
  731. timer_setInterval(reguardtimer, stealthedit_RewatchTimer)
  732. timer_setEnabled(reguardtimer, true)
  733. end
  734. end
  735.  
  736.  
  737. function lbAddressesSelectionChange(sender, user)
  738. -- showMessage('selection changed')
  739. -- frmResults_lbAddresses
  740. -- frmResults_mData
  741. local is64bit=targetIs64Bit()
  742. local items=listbox_getItems(frmResults_lbAddresses)
  743. local itemindex=listbox_getItemIndex(frmResults_lbAddresses)
  744. local event=se_events[tonumber('0x'..strings_getString(items, itemindex))]
  745.  
  746. edit_clear(frmResults_mData)
  747.  
  748. if is64bit then
  749. prefix='R'
  750. else
  751. prefix='E'
  752. end
  753.  
  754.  
  755. memo_append(frmResults_mData,prefix..'AX = '..string.format('%08X',event.rax))
  756. memo_append(frmResults_mData,prefix..'BX = '..string.format('%08X',event.rbx))
  757. memo_append(frmResults_mData,prefix..'CX = '..string.format('%08X',event.rcx))
  758. memo_append(frmResults_mData,prefix..'DX = '..string.format('%08X',event.rdx))
  759. memo_append(frmResults_mData,prefix..'SI = '..string.format('%08X',event.rsi))
  760. memo_append(frmResults_mData,prefix..'DI = '..string.format('%08X',event.rdi))
  761. memo_append(frmResults_mData,prefix..'BP = '..string.format('%08X',event.rbp))
  762. memo_append(frmResults_mData,prefix..'SP = '..string.format('%08X',event.rsp))
  763. memo_append(frmResults_mData,prefix..'IP = '..string.format('%08X',event.rip))
  764.  
  765. if is64bit then
  766. memo_append(frmResults_mData,' R8 = '..string.format('%08X',event.r8))
  767. memo_append(frmResults_mData,' R9 = '..string.format('%08X',event.r9))
  768. memo_append(frmResults_mData,'R10 = '..string.format('%08X',event.r10))
  769. memo_append(frmResults_mData,'R11 = '..string.format('%08X',event.r11))
  770. memo_append(frmResults_mData,'R12 = '..string.format('%08X',event.r12))
  771. memo_append(frmResults_mData,'R13 = '..string.format('%08X',event.r13))
  772. memo_append(frmResults_mData,'R14 = '..string.format('%08X',event.r14))
  773. memo_append(frmResults_mData,'R15 = '..string.format('%08X',event.r15))
  774. end
  775.  
  776. memo_append(frmResults_mData,'')
  777. memo_append(frmResults_mData,'Stack copy = '..string.format('%08X',event.stackcopy))
  778. memo_append(frmResults_mData,'Stack size = '..string.format('%08X',event.stacksize))
  779. end
  780.  
  781. function lbAddressesDblClick(sender)
  782. local items=listbox_getItems(frmResults_lbAddresses)
  783. local itemindex=listbox_getItemIndex(frmResults_lbAddresses)
  784. local address=tonumber('0x'..strings_getString(items, itemindex))
  785. local mb=getMemoryViewForm()
  786. local dv=memoryview_getDisassemblerView(mb)
  787. disassemblerview_setSelectedAddress(dv, address)
  788. form_show(mb)
  789. end
  790. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement