Advertisement
AkoSiKerwin

Untitled

Jan 20th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.26 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.1
  3.  
  4. -- Instances:
  5.  
  6. local LT2DupeGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local ESPAIMBOT = Instance.new("TextButton")
  10. local UNLIJUMP = Instance.new("TextButton")
  11. local Others = Instance.new("TextButton")
  12. local TextLabel_2 = Instance.new("TextLabel")
  13.  
  14. --Properties:
  15.  
  16. LT2DupeGui.Name = "LT2DupeGui"
  17. LT2DupeGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  18. LT2DupeGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19.  
  20. Frame.Parent = LT2DupeGui
  21. Frame.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  22. Frame.Position = UDim2.new(0.011409183, 0, 0.103197671, 0)
  23. Frame.Size = UDim2.new(0, 188, 0, 253)
  24.  
  25. TextLabel.Parent = Frame
  26. TextLabel.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  27. TextLabel.Size = UDim2.new(0, 188, 0, 50)
  28. TextLabel.Font = Enum.Font.Fantasy
  29. TextLabel.Text = "Sky Blue Exploit"
  30. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  31. TextLabel.TextSize = 14.000
  32.  
  33. ESPAIMBOT.Name = "ESPAIMBOT"
  34. ESPAIMBOT.Parent = Frame
  35. ESPAIMBOT.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  36. ESPAIMBOT.Position = UDim2.new(0.101063833, 0, 0.237657934, 0)
  37. ESPAIMBOT.Size = UDim2.new(0, 150, 0, 43)
  38. ESPAIMBOT.Font = Enum.Font.GothamSemibold
  39. ESPAIMBOT.Text = "ESP AIMBOT"
  40. ESPAIMBOT.TextColor3 = Color3.fromRGB(0, 0, 0)
  41. ESPAIMBOT.TextSize = 14.000
  42. ESPAIMBOT.MouseButton1Down:connect(function()
  43. local plrs = game:GetService("Players")
  44. local TeamBased = true ; local teambasedswitch = "o"
  45. local presskeytoaim = true; local aimkey = "e"
  46. local raycast = false
  47.  
  48. local espupdatetime = 5; autoesp = false
  49.  
  50.  
  51.  
  52. local lockaim = true; local lockangle = 5
  53.  
  54.  
  55.  
  56. --function findwat(folder, what)
  57. -- for i, smth in pairs(folder:GetChildren()) do
  58. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then
  59. -- return smth
  60. -- end
  61. -- end
  62. --end
  63. --
  64. --local plrs = findwat(game, "Players")
  65.  
  66.  
  67.  
  68.  
  69. local Gui = Instance.new("ScreenGui")
  70. local Move = Instance.new("Frame")
  71. local Main = Instance.new("Frame")
  72. local EspStatus = Instance.new("TextLabel")
  73. local st1 = Instance.new("TextLabel")
  74. local st1_2 = Instance.new("TextLabel")
  75. local st1_3 = Instance.new("TextLabel")
  76. local Name = Instance.new("TextLabel")
  77. --Properties:
  78. Gui.Name = "Gui"
  79. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  80.  
  81. Move.Name = "Move"
  82. Move.Parent = Gui
  83. Move.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  84. Move.BackgroundTransparency = 1
  85. Move.BorderSizePixel = 0
  86. Move.Draggable = true
  87. Move.Position = UDim2.new(0.005, 0, -0.15, 0)
  88. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  89.  
  90. Main.Name = "Main"
  91. Main.Parent = Move
  92. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  93. Main.Position = UDim2.new(0, -7, 20.9960003, 0)
  94. Main.Size = UDim2.new(1, 0, 5.79699993, 0)
  95. Main.Style = Enum.FrameStyle.RobloxSquare
  96.  
  97. EspStatus.Name = "EspStatus"
  98. EspStatus.Parent = Main
  99. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  100. EspStatus.BackgroundTransparency = 1
  101. EspStatus.Position = UDim2.new(0, 0, 0.300000012, 0)
  102. EspStatus.Size = UDim2.new(1, 0, 0.162, 0)
  103. EspStatus.Font = Enum.Font.ArialBold
  104. EspStatus.Text = "Press O to change team based mode"
  105. EspStatus.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  106. EspStatus.TextScaled = true
  107. EspStatus.TextWrapped = true
  108.  
  109. st1.Name = "st1"
  110. st1.Parent = Main
  111. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  112. st1.BackgroundTransparency = 1
  113. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  114. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  115. st1.Font = Enum.Font.ArialBold
  116. st1.Text = ""
  117. st1.TextColor3 = Color3.new(0.0784314, 0.541176, 0)
  118. st1.TextScaled = true
  119. st1.TextSize = 14
  120. st1.TextWrapped = true
  121.  
  122. st1_2.Name = "st1"
  123. st1_2.Parent = Main
  124. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  125. st1_2.BackgroundTransparency = 1
  126. st1_2.Position = UDim2.new(0, 0, 0.875999987, 0)
  127. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  128. st1_2.Font = Enum.Font.ArialBold
  129. st1_2.Text = "Press E to lock on a person inside ur view"
  130. st1_2.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  131. st1_2.TextScaled = true
  132. st1_2.TextWrapped = true
  133.  
  134. st1_3.Name = "st1"
  135. st1_3.Parent = Main
  136. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  137. st1_3.BackgroundTransparency = 1
  138. st1_3.Position = UDim2.new(0, 0, 0.54, 0)
  139. st1_3.Size = UDim2.new(1, 0, 0.261999995, 0)
  140. st1_3.Font = Enum.Font.ArialBold
  141. st1_3.Text = "Press L to enable esp loop and press T to update esp"
  142. st1_3.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  143. st1_3.TextScaled = true
  144. st1_3.TextWrapped = true
  145.  
  146.  
  147. Name.Name = "Name"
  148. Name.Parent = Move
  149. Name.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  150. Name.BackgroundTransparency = 1
  151. Name.Position = UDim2.new(0, 25, 20.9860001, 0)
  152. Name.Size = UDim2.new(0.838, 0, 1.27999997, 0)
  153. Name.Font = Enum.Font.Arcade
  154. Name.Text = "ARSENAL GUI"
  155. Name.TextColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  156. Name.TextScaled = true
  157. Name.TextSize = 12
  158. Name.TextWrapped = true
  159. -- Scripts:
  160.  
  161.  
  162. local plrsforaim = {}
  163.  
  164. local lplr = game:GetService("Players").LocalPlayer
  165. Move.Draggable = true
  166. Gui.ResetOnSpawn = false
  167. Gui.Name = "Chat"
  168. Gui.DisplayOrder = 999
  169.  
  170. Gui.Parent = plrs.LocalPlayer.PlayerGui
  171.  
  172.  
  173. f = {}
  174. local espforlder
  175.  
  176. f.addesp = function()
  177. --print("ESP ran")
  178. if espforlder then
  179. else
  180. espforlder = Instance.new("Folder")
  181. espforlder.Parent = game.Workspace.CurrentCamera
  182. end
  183. for i, v in pairs(espforlder:GetChildren()) do
  184. v:Destroy()
  185. end
  186. for _, plr in pairs(plrs:GetChildren()) do
  187. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  188. if TeamBased == true then
  189. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  190. local e = espforlder:FindFirstChild(plr.Name)
  191. if not e then
  192. --print("Added esp for team based")
  193. local bill = Instance.new("BillboardGui", espforlder)
  194. bill.Name = plr.Name
  195. bill.AlwaysOnTop = true
  196. bill.Size = UDim2.new(1,0,1,0)
  197. bill.Adornee = plr.Character.Head
  198. local Frame = Instance.new('Frame',bill)
  199. Frame.Active = true
  200. Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  201. Frame.BackgroundTransparency = 0
  202. Frame.BorderSizePixel = 0
  203. Frame.AnchorPoint = Vector2.new(.5, .5)
  204. Frame.Position = UDim2.new (0.5,0,0.5,0)
  205. Frame.Size = UDim2.new (1,0,1,0)
  206. Frame.Rotation = 0
  207. plr.Character.Humanoid.Died:Connect(function()
  208. bill:Destroy()
  209. end)
  210. end
  211. end
  212. else
  213. local e = espforlder:FindFirstChild(plr.Name)
  214. if not e then
  215. --print("Added esp")
  216. local bill = Instance.new("BillboardGui", espforlder)
  217. bill.Name = plr.Name
  218. bill.AlwaysOnTop = true
  219. bill.Size = UDim2.new(1,0,1,0)
  220. bill.Adornee = plr.Character.Head
  221. local Frame = Instance.new('Frame',bill)
  222. Frame.Active = true
  223. Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  224. Frame.BackgroundTransparency = 0
  225. Frame.BorderSizePixel = 0
  226. Frame.AnchorPoint = Vector2.new(.5, .5)
  227. Frame.Position = UDim2.new (0.5,0,0.5,0)
  228. Frame.Size = UDim2.new (1,0,1,0)
  229. Frame.Rotation = 0
  230. plr.Character.Humanoid.Died:Connect(function()
  231. bill:Destroy()
  232. end)
  233. end
  234. end
  235.  
  236.  
  237. end
  238. end
  239. end
  240. local cam = game.Workspace.CurrentCamera
  241.  
  242. local mouse = lplr:GetMouse()
  243. local switch = false
  244. local key = "k"
  245. local aimatpart = nil
  246. mouse.KeyDown:Connect(function(a)
  247. if a == "t" then
  248. print("worked1")
  249. f.addesp()
  250. elseif a == "u" then
  251. if raycast == true then
  252. raycast = false
  253. else
  254. raycast = true
  255. end
  256. elseif a == "l" then
  257. if autoesp == false then
  258. autoesp = true
  259. else
  260. autoesp = false
  261. end
  262. end
  263. if a == "j" then
  264. if mouse.Target then
  265. mouse.Target:Destroy()
  266. end
  267. end
  268. if a == key then
  269. if switch == false then
  270. switch = true
  271. else
  272. switch = false
  273. if aimatpart ~= nil then
  274. aimatpart = nil
  275. end
  276. end
  277. elseif a == teambasedswitch then
  278. if TeamBased == true then
  279. TeamBased = false
  280. teambasedstatus.Text = tostring(TeamBased)
  281. else
  282. TeamBased = true
  283. teambasedstatus.Text = tostring(TeamBased)
  284. end
  285. elseif a == aimkey then
  286. if not aimatpart then
  287. local maxangle = math.rad(20)
  288. for i, plr in pairs(plrs:GetChildren()) do
  289. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  290. if TeamBased == true then
  291. if plr.Team.Name ~= lplr.Team.Name then
  292. local an = checkfov(plr.Character.Head)
  293. if an < maxangle then
  294. maxangle = an
  295. aimatpart = plr.Character.Head
  296. end
  297. end
  298. else
  299. local an = checkfov(plr.Character.Head)
  300. if an < maxangle then
  301. maxangle = an
  302. aimatpart = plr.Character.Head
  303. end
  304. print(plr)
  305. end
  306. plr.Character.Humanoid.Died:Connect(function()
  307. if aimatpart.Parent == plr.Character or aimatpart == nil then
  308. aimatpart = nil
  309. end
  310. end)
  311. end
  312. end
  313. else
  314. aimatpart = nil
  315. end
  316. end
  317. end)
  318.  
  319. function getfovxyz (p0, p1, deg)
  320. local x1, y1, z1 = p0:ToOrientation()
  321. local cf = CFrame.new(p0.p, p1.p)
  322. local x2, y2, z2 = cf:ToOrientation()
  323. --local d = math.deg
  324. if deg then
  325. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  326. else
  327. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  328. end
  329. end
  330.  
  331. function getaimbotplrs()
  332. plrsforaim = {}
  333. for i, plr in pairs(plrs:GetChildren()) do
  334. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  335.  
  336. if TeamBased == true then
  337. if plr.Team.Name ~= lplr.Team.Name then
  338. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  339. local r = Ray.new(cf, cf.LookVector * 10000)
  340. local ign = {}
  341. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  342. if v:IsA("BasePart") then
  343. table.insert(ign , v)
  344. end
  345. end
  346. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  347. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  348. table.insert(plrsforaim, obj)
  349. end
  350. end
  351. else
  352. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  353. local r = Ray.new(cf, cf.LookVector * 10000)
  354. local ign = {}
  355. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  356. if v:IsA("BasePart") then
  357. table.insert(ign , v)
  358. end
  359. end
  360. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  361. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  362. table.insert(plrsforaim, obj)
  363. end
  364. end
  365.  
  366.  
  367. end
  368. end
  369. end
  370.  
  371. function aimat(part)
  372. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  373. end
  374. function checkfov (part)
  375. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  376. local angle = math.abs(fov.X) + math.abs(fov.Y)
  377. return angle
  378. end
  379.  
  380. game:GetService("RunService").RenderStepped:Connect(function()
  381. if aimatpart then
  382. aimat(aimatpart)
  383. if aimatpart.Parent == plrs.LocalPlayer.Character then
  384. aimatpart = nil
  385. end
  386. end
  387.  
  388.  
  389. -- if switch == true then
  390. -- local maxangle = 99999
  391. --
  392. -- --print("Loop")
  393. -- if true and raycast == false then
  394. -- for i, plr in pairs(plrs:GetChildren()) do
  395. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  396. -- if TeamBased then
  397. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  398. -- local an = checkfov(plr.Character.Head)
  399. -- if an < maxangle then
  400. -- maxangle = an
  401. -- aimatpart = plr.Character.Head
  402. -- if an < lockangle then
  403. -- break
  404. -- end
  405. -- end
  406. -- end
  407. -- else
  408. -- local an = checkfov(plr.Character.Head)
  409. -- if an < maxangle then
  410. -- maxangle = an
  411. -- aimatpart = plr.Character.Head
  412. -- if an < lockangle then
  413. -- break
  414. -- end
  415. -- end
  416. -- end
  417. --
  418. --
  419. --
  420. --
  421. -- end
  422. -- end
  423. -- elseif raycast == true then
  424. --
  425. -- end
  426.  
  427. if raycast == true and switch == false and not aimatpart then
  428. getaimbotplrs()
  429. aimatpart = nil
  430. local maxangle = 999
  431. for i, v in ipairs(plrsforaim) do
  432. if v.Parent ~= lplr.Character then
  433. local an = checkfov(v)
  434. if an < maxangle and v ~= lplr.Character.Head then
  435. maxangle = an
  436. aimatpart = v
  437. print(v:GetFullName())
  438. v.Parent.Humanoid.Died:connect(function()
  439. aimatpart = nil
  440. end)
  441. end
  442. end
  443. end
  444.  
  445. end
  446. end)
  447. delay(0, function()
  448. while wait(espupdatetime) do
  449. if autoesp == true then
  450. pcall(function()
  451. f.addesp()
  452. end)
  453. end
  454. end
  455. end)
  456. warn("loaded")
  457. end)
  458. UNLIJUMP.Name = "UNLIJUMP"
  459. UNLIJUMP.Parent = Frame
  460. UNLIJUMP.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  461. UNLIJUMP.Position = UDim2.new(0.100574344, 0, 0.431372553, 0)
  462. UNLIJUMP.Size = UDim2.new(0, 150, 0, 50)
  463. UNLIJUMP.Font = Enum.Font.GothamSemibold
  464. UNLIJUMP.Text = "UNLI JUMP"
  465. UNLIJUMP.TextColor3 = Color3.fromRGB(0, 0, 0)
  466. UNLIJUMP.TextSize = 14.000
  467. UNLIJUMP.MouseButton1Down:connect(function()
  468. local InfiniteJumpEnabled = true
  469. game:GetService("UserInputService").JumpRequest:connect(function()
  470. if InfiniteJumpEnabled then
  471. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  472. end
  473. end)
  474.  
  475.  
  476.  
  477. --function findwat(folder, what)
  478. -- for i, smth in pairs(folder:GetChildren()) do
  479. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then
  480. -- return smth
  481. -- end
  482. -- end
  483. --end
  484. --
  485. --local plrs = findwat(game, "Players")
  486.  
  487.  
  488.  
  489.  
  490. local Gui = Instance.new("ScreenGui")
  491. local Move = Instance.new("Frame")
  492. local Main = Instance.new("Frame")
  493. local EspStatus = Instance.new("TextLabel")
  494. local st1 = Instance.new("TextLabel")
  495. local st1_2 = Instance.new("TextLabel")
  496. local st1_3 = Instance.new("TextLabel")
  497. local Name = Instance.new("TextLabel")
  498. --Properties:
  499. Gui.Name = "Gui"
  500. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  501.  
  502. Move.Name = "Move"
  503. Move.Parent = Gui
  504. Move.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  505. Move.BackgroundTransparency = 1
  506. Move.BorderSizePixel = 0
  507. Move.Draggable = true
  508. Move.Position = UDim2.new(0.005, 0, -0.15, 0)
  509. Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
  510.  
  511. Main.Name = "Main"
  512. Main.Parent = Move
  513. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  514. Main.Position = UDim2.new(0, -7, 20.9960003, 0)
  515. Main.Size = UDim2.new(1, 0, 5.79699993, 0)
  516. Main.Style = Enum.FrameStyle.RobloxSquare
  517.  
  518. EspStatus.Name = "EspStatus"
  519. EspStatus.Parent = Main
  520. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  521. EspStatus.BackgroundTransparency = 1
  522. EspStatus.Position = UDim2.new(0, 0, 0.300000012, 0)
  523. EspStatus.Size = UDim2.new(1, 0, 0.162, 0)
  524. EspStatus.Font = Enum.Font.ArialBold
  525. EspStatus.Text = "Press O to change team based mode"
  526. EspStatus.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  527. EspStatus.TextScaled = true
  528. EspStatus.TextWrapped = true
  529.  
  530. st1.Name = "st1"
  531. st1.Parent = Main
  532. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  533. st1.BackgroundTransparency = 1
  534. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  535. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  536. st1.Font = Enum.Font.ArialBold
  537. st1.Text = ""
  538. st1.TextColor3 = Color3.new(0.0784314, 0.541176, 0)
  539. st1.TextScaled = true
  540. st1.TextSize = 14
  541. st1.TextWrapped = true
  542.  
  543. st1_2.Name = "st1"
  544. st1_2.Parent = Main
  545. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  546. st1_2.BackgroundTransparency = 1
  547. st1_2.Position = UDim2.new(0, 0, 0.875999987, 0)
  548. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  549. st1_2.Font = Enum.Font.ArialBold
  550. st1_2.Text = "Press E to lock on a person inside ur view"
  551. st1_2.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  552. st1_2.TextScaled = true
  553. st1_2.TextWrapped = true
  554.  
  555. st1_3.Name = "st1"
  556. st1_3.Parent = Main
  557. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  558. st1_3.BackgroundTransparency = 1
  559. st1_3.Position = UDim2.new(0, 0, 0.54, 0)
  560. st1_3.Size = UDim2.new(1, 0, 0.261999995, 0)
  561. st1_3.Font = Enum.Font.ArialBold
  562. st1_3.Text = "Press L to enable esp loop and press T to update esp"
  563. st1_3.TextColor3 = Color3.new(0.6, 0.196078, 0.8)
  564. st1_3.TextScaled = true
  565. st1_3.TextWrapped = true
  566.  
  567.  
  568. Name.Name = "Name"
  569. Name.Parent = Move
  570. Name.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  571. Name.BackgroundTransparency = 1
  572. Name.Position = UDim2.new(0, 25, 20.9860001, 0)
  573. Name.Size = UDim2.new(0.838, 0, 1.27999997, 0)
  574. Name.Font = Enum.Font.Arcade
  575. Name.Text = "ARSENAL GUI"
  576. Name.TextColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  577. Name.TextScaled = true
  578. Name.TextSize = 12
  579. Name.TextWrapped = true
  580. -- Scripts:
  581.  
  582.  
  583. local plrsforaim = {}
  584.  
  585. local lplr = game:GetService("Players").LocalPlayer
  586. Move.Draggable = true
  587. Gui.ResetOnSpawn = false
  588. Gui.Name = "Chat"
  589. Gui.DisplayOrder = 999
  590.  
  591. Gui.Parent = plrs.LocalPlayer.PlayerGui
  592.  
  593.  
  594. f = {}
  595. local espforlder
  596.  
  597. f.addesp = function()
  598. --print("ESP ran")
  599. if espforlder then
  600. else
  601. espforlder = Instance.new("Folder")
  602. espforlder.Parent = game.Workspace.CurrentCamera
  603. end
  604. for i, v in pairs(espforlder:GetChildren()) do
  605. v:Destroy()
  606. end
  607. for _, plr in pairs(plrs:GetChildren()) do
  608. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  609. if TeamBased == true then
  610. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  611. local e = espforlder:FindFirstChild(plr.Name)
  612. if not e then
  613. --print("Added esp for team based")
  614. local bill = Instance.new("BillboardGui", espforlder)
  615. bill.Name = plr.Name
  616. bill.AlwaysOnTop = true
  617. bill.Size = UDim2.new(1,0,1,0)
  618. bill.Adornee = plr.Character.Head
  619. local Frame = Instance.new('Frame',bill)
  620. Frame.Active = true
  621. Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  622. Frame.BackgroundTransparency = 0
  623. Frame.BorderSizePixel = 0
  624. Frame.AnchorPoint = Vector2.new(.5, .5)
  625. Frame.Position = UDim2.new (0.5,0,0.5,0)
  626. Frame.Size = UDim2.new (1,0,1,0)
  627. Frame.Rotation = 0
  628. plr.Character.Humanoid.Died:Connect(function()
  629. bill:Destroy()
  630. end)
  631. end
  632. end
  633. else
  634. local e = espforlder:FindFirstChild(plr.Name)
  635. if not e then
  636. --print("Added esp")
  637. local bill = Instance.new("BillboardGui", espforlder)
  638. bill.Name = plr.Name
  639. bill.AlwaysOnTop = true
  640. bill.Size = UDim2.new(1,0,1,0)
  641. bill.Adornee = plr.Character.Head
  642. local Frame = Instance.new('Frame',bill)
  643. Frame.Active = true
  644. Frame.BackgroundColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  645. Frame.BackgroundTransparency = 0
  646. Frame.BorderSizePixel = 0
  647. Frame.AnchorPoint = Vector2.new(.5, .5)
  648. Frame.Position = UDim2.new (0.5,0,0.5,0)
  649. Frame.Size = UDim2.new (1,0,1,0)
  650. Frame.Rotation = 0
  651. plr.Character.Humanoid.Died:Connect(function()
  652. bill:Destroy()
  653. end)
  654. end
  655. end
  656.  
  657.  
  658. end
  659. end
  660. end
  661. local cam = game.Workspace.CurrentCamera
  662.  
  663. local mouse = lplr:GetMouse()
  664. local switch = false
  665. local key = "k"
  666. local aimatpart = nil
  667. mouse.KeyDown:Connect(function(a)
  668. if a == "t" then
  669. print("worked1")
  670. f.addesp()
  671. elseif a == "u" then
  672. if raycast == true then
  673. raycast = false
  674. else
  675. raycast = true
  676. end
  677. elseif a == "l" then
  678. if autoesp == false then
  679. autoesp = true
  680. else
  681. autoesp = false
  682. end
  683. end
  684. if a == "j" then
  685. if mouse.Target then
  686. mouse.Target:Destroy()
  687. end
  688. end
  689. if a == key then
  690. if switch == false then
  691. switch = true
  692. else
  693. switch = false
  694. if aimatpart ~= nil then
  695. aimatpart = nil
  696. end
  697. end
  698. elseif a == teambasedswitch then
  699. if TeamBased == true then
  700. TeamBased = false
  701. teambasedstatus.Text = tostring(TeamBased)
  702. else
  703. TeamBased = true
  704. teambasedstatus.Text = tostring(TeamBased)
  705. end
  706. elseif a == aimkey then
  707. if not aimatpart then
  708. local maxangle = math.rad(20)
  709. for i, plr in pairs(plrs:GetChildren()) do
  710. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  711. if TeamBased == true then
  712. if plr.Team.Name ~= lplr.Team.Name then
  713. local an = checkfov(plr.Character.Head)
  714. if an < maxangle then
  715. maxangle = an
  716. aimatpart = plr.Character.Head
  717. end
  718. end
  719. else
  720. local an = checkfov(plr.Character.Head)
  721. if an < maxangle then
  722. maxangle = an
  723. aimatpart = plr.Character.Head
  724. end
  725. print(plr)
  726. end
  727. plr.Character.Humanoid.Died:Connect(function()
  728. if aimatpart.Parent == plr.Character or aimatpart == nil then
  729. aimatpart = nil
  730. end
  731. end)
  732. end
  733. end
  734. else
  735. aimatpart = nil
  736. end
  737. end
  738. end)
  739.  
  740. function getfovxyz (p0, p1, deg)
  741. local x1, y1, z1 = p0:ToOrientation()
  742. local cf = CFrame.new(p0.p, p1.p)
  743. local x2, y2, z2 = cf:ToOrientation()
  744. --local d = math.deg
  745. if deg then
  746. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  747. else
  748. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  749. end
  750. end
  751.  
  752. function getaimbotplrs()
  753. plrsforaim = {}
  754. for i, plr in pairs(plrs:GetChildren()) do
  755. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  756.  
  757. if TeamBased == true then
  758. if plr.Team.Name ~= lplr.Team.Name then
  759. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  760. local r = Ray.new(cf, cf.LookVector * 10000)
  761. local ign = {}
  762. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  763. if v:IsA("BasePart") then
  764. table.insert(ign , v)
  765. end
  766. end
  767. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  768. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  769. table.insert(plrsforaim, obj)
  770. end
  771. end
  772. else
  773. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  774. local r = Ray.new(cf, cf.LookVector * 10000)
  775. local ign = {}
  776. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  777. if v:IsA("BasePart") then
  778. table.insert(ign , v)
  779. end
  780. end
  781. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  782. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  783. table.insert(plrsforaim, obj)
  784. end
  785. end
  786.  
  787.  
  788. end
  789. end
  790. end
  791.  
  792. function aimat(part)
  793. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  794. end
  795. function checkfov (part)
  796. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  797. local angle = math.abs(fov.X) + math.abs(fov.Y)
  798. return angle
  799. end
  800.  
  801. game:GetService("RunService").RenderStepped:Connect(function()
  802. if aimatpart then
  803. aimat(aimatpart)
  804. if aimatpart.Parent == plrs.LocalPlayer.Character then
  805. aimatpart = nil
  806. end
  807. end
  808.  
  809.  
  810. -- if switch == true then
  811. -- local maxangle = 99999
  812. --
  813. -- --print("Loop")
  814. -- if true and raycast == false then
  815. -- for i, plr in pairs(plrs:GetChildren()) do
  816. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  817. -- if TeamBased then
  818. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  819. -- local an = checkfov(plr.Character.Head)
  820. -- if an < maxangle then
  821. -- maxangle = an
  822. -- aimatpart = plr.Character.Head
  823. -- if an < lockangle then
  824. -- break
  825. -- end
  826. -- end
  827. -- end
  828. -- else
  829. -- local an = checkfov(plr.Character.Head)
  830. -- if an < maxangle then
  831. -- maxangle = an
  832. -- aimatpart = plr.Character.Head
  833. -- if an < lockangle then
  834. -- break
  835. -- end
  836. -- end
  837. -- end
  838. --
  839. --
  840. --
  841. --
  842. -- end
  843. -- end
  844. -- elseif raycast == true then
  845. --
  846. -- end
  847.  
  848. if raycast == true and switch == false and not aimatpart then
  849. getaimbotplrs()
  850. aimatpart = nil
  851. local maxangle = 999
  852. for i, v in ipairs(plrsforaim) do
  853. if v.Parent ~= lplr.Character then
  854. local an = checkfov(v)
  855. if an < maxangle and v ~= lplr.Character.Head then
  856. maxangle = an
  857. aimatpart = v
  858. print(v:GetFullName())
  859. v.Parent.Humanoid.Died:connect(function()
  860. aimatpart = nil
  861. end)
  862. end
  863. end
  864. end
  865.  
  866. end
  867. end)
  868. delay(0, function()
  869. while wait(espupdatetime) do
  870. if autoesp == true then
  871. pcall(function()
  872. f.addesp()
  873. end)
  874. end
  875. end
  876. end)
  877. warn("loaded")
  878. end)
  879. Others.Name = "Others"
  880. Others.Parent = Frame
  881. Others.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  882. Others.Position = UDim2.new(0.100574344, 0, 0.653594851, 0)
  883. Others.Size = UDim2.new(0, 150, 0, 50)
  884. Others.Font = Enum.Font.GothamSemibold
  885. Others.Text = "COMING SOON"
  886. Others.TextColor3 = Color3.fromRGB(0, 0, 0)
  887. Others.TextSize = 14.000
  888.  
  889. TextLabel_2.Parent = Frame
  890. TextLabel_2.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  891. TextLabel_2.Position = UDim2.new(0.145020217, 0, 0.905272126, 0)
  892. TextLabel_2.Size = UDim2.new(0, 133, 0, 18)
  893. TextLabel_2.Font = Enum.Font.Fantasy
  894. TextLabel_2.Text = "Gui By Kerwin Rosillo"
  895. TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  896. TextLabel_2.TextSize = 14.000
  897.  
  898. -- Scripts:
  899.  
  900. local function MLUCSSZ_fake_script() -- LT2DupeGui.LocalScript
  901. local script = Instance.new('LocalScript', LT2DupeGui)
  902.  
  903. frame = script.Parent.Frame
  904. frame.Draggable = true
  905. frame.Active = true
  906. frame.Selectable = true
  907.  
  908.  
  909. end
  910. coroutine.wrap(MLUCSSZ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement