FPS GUI v2 -AIMBOT AND ESP- - Pastebin.com (2024)

  1. pcall(function()

  2. local espcolor = Color3.fromRGB(140, 69, 102)

  3. local wallhack_esp_transparency = .4

  4. local gui_hide_button = {Enum.KeyCode.LeftControl, "h"}

  5. local plrs = game:GetService("Players")

  6. local lplr = game:GetService("Players").LocalPlayer

  7. local TeamBased = true ; local teambasedswitch = "o"

  8. local presskeytoaim = true; local aimkey = "e"

  9. aimbothider = false; aimbothiderspeed = .5

  10. local Aim_Assist = false ; Aim_Assist_Key = {Enum.KeyCode.LeftControl, "z"}

  11. local espupdatetime = 5; autoesp = false

  12. local abs = math.abs

  13. local mouselock = false

  14. local canaimat = true

  15. local lockaim = true; local lockangle = 5

  16. local ver = "2"

  17. local cam = game.Workspace.CurrentCamera

  18. local BetterDeathCount = true

  19. local mouse = lplr:GetMouse()

  20. local switch = false

  21. local key = "k"

  22. local aimatpart = nil

  23. local Gui = Instance.new("ScreenGui")

  24. local Move = Instance.new("Frame")

  25. local Main = Instance.new("Frame")

  26. local EspStatus = Instance.new("TextLabel")

  27. local st1 = Instance.new("TextLabel")

  28. local st1_2 = Instance.new("TextLabel")

  29. local st1_3 = Instance.new("TextLabel")

  30. local Name = Instance.new("TextLabel")

  31. --Properties:

  32. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")

  33. local gotstring = 0

  34. local function getrandomstring()

  35. gotstring = gotstring+666

  36. local str = ""

  37. 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",

  38. "?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?", "`", "$",

  39. "0","1","2","3","4","5","6","7","8","9", }

  40. local counting123 = 0

  41. for i, v in ipairs(randomstring) do

  42. counting123 = i

  43. end

  44. do

  45. math.randomseed(tick()+gotstring)

  46. for i = 3, math.random(1,100) do

  47. math.randomseed(i+tick()+gotstring)

  48. local oneortwo = math.random(1,2)

  49. if oneortwo == 2 then

  50. math.randomseed(i+tick()+gotstring)

  51. str = str..""..randomstring[math.random(1, counting123)]

  52. else

  53. math.randomseed(i+tick()+gotstring)

  54. str = str..""..string.upper(randomstring[math.random(1, counting123)])

  55. end

  56. end

  57. end

  58. return str

  59. end

  60. local mousedown = false

  61. local isonmovething = false

  62. local mouseoffset = Vector2.new()

  63. local mousedown = false

  64. Gui.Name = getrandomstring()

  65. Move.Name = getrandomstring()

  66. Move.Draggable = true

  67. Move.Parent = Gui

  68. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)

  69. Move.BackgroundTransparency = 0.40000000596046

  70. Move.BorderSizePixel = 0

  71. Move.Position = UDim2.new(0.5, 0,0.018, 0)

  72. Move.Size = UDim2.new(0.2, 0, 0.0320388414, 0)

  73. Move.MouseEnter:Connect(function()

  74. isonmovething = true

  75. end)

  76. Move.MouseLeave:Connect(function()

  77. isonmovething = mousedown and true or false

  78. end)

  79. mouse.Button1Down:connect(function()

  80. mousedown = true

  81. mouseoffset = Move.AbsolutePosition - Vector2.new(mouse.X, mouse.Y)

  82. end)

  83. mouse.Button1Up:connect(function()

  84. mousedown = false

  85. end)

  86. mouse.Move:Connect(function()

  87. if isonmovething == true and mousedown then

  88. Move.Position = UDim2.new(0, mouseoffset.X + mouse.X, 0, mouseoffset.Y + mouse.Y)

  89. end

  90. end)

  91. Main.Name = getrandomstring()

  92. Main.Parent = Move

  93. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)

  94. Main.BackgroundTransparency = 0.69999998807907

  95. Main.Position = UDim2.new(0, 0, 0.995670795, 0)

  96. Main.Size = UDim2.new(1.0000006, 0, 11.2, 0)

  97. EspStatus.Name = getrandomstring()

  98. EspStatus.Parent = Main

  99. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)

  100. EspStatus.BackgroundTransparency = 1

  101. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)

  102. EspStatus.Font = Enum.Font.ArialBold

  103. EspStatus.Text = "Press T to update Esp"

  104. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)

  105. EspStatus.TextScaled = true

  106. EspStatus.TextSize = 14

  107. EspStatus.TextWrapped = true

  108. st1.Name = getrandomstring()

  109. st1.Parent = Main

  110. st1.BackgroundColor3 = Color3.new(1, 1, 1)

  111. st1.BackgroundTransparency = 1

  112. st1.Position = UDim2.new(0.271787882, 0, 0, 0)

  113. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)

  114. st1.Font = Enum.Font.ArialBold

  115. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"

  116. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)

  117. st1.TextScaled = true

  118. st1.TextSize = 14

  119. st1.TextWrapped = true

  120. st1_2.Name = getrandomstring()

  121. st1_2.Parent = Main

  122. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)

  123. st1_2.BackgroundTransparency = 1

  124. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)

  125. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)

  126. st1_2.Font = Enum.Font.ArialBold

  127. st1_2.Text = "Press L to enable esp loop. Press Y to disable/enable aimbot hider"

  128. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)

  129. st1_2.TextScaled = true

  130. st1_2.TextSize = 14

  131. st1_2.TextWrapped = true

  132. local aimbothiderbox = Instance.new("TextBox")

  133. aimbothiderbox.Name = getrandomstring()

  134. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  135. aimbothiderbox.Size = UDim2.new(1, 0,0.162, 0)

  136. aimbothiderbox.TextScaled = true

  137. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)

  138. aimbothiderbox.Position = UDim2.new(0, 0,0.853, 0)

  139. aimbothiderbox.BackgroundTransparency = 1

  140. aimbothiderbox.Parent = Main

  141. st1_3.Name = getrandomstring()

  142. st1_3.Parent = Main

  143. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)

  144. st1_3.BackgroundTransparency = 1

  145. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)

  146. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)

  147. st1_3.Font = Enum.Font.ArialBold

  148. st1_3.Text = "Press O to change team based mode"

  149. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)

  150. st1_3.TextScaled = true

  151. st1_3.TextSize = 14

  152. st1_3.TextWrapped = true

  153. local teambasedstatus = st1_3:Clone()

  154. teambasedstatus.Parent = Main

  155. teambasedstatus.TextScaled = true

  156. teambasedstatus.Position = UDim2.new(0, 0,.7, 0)

  157. teambasedstatus.Size = UDim2.new(1, 0,.1, 0)

  158. teambasedstatus.Name = getrandomstring()

  159. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)

  160. local espstatustext = teambasedstatus:Clone()

  161. espstatustext.Name = getrandomstring()

  162. espstatustext.Position = UDim2.new(0, 0,0.58, 0)

  163. espstatustext.Text = "Esp loop :"..tostring(autoesp)

  164. espstatustext.Parent = Main

  165. local hide = Instance.new("TextButton")

  166. hide.Text = "_"

  167. hide.BackgroundTransparency = 1

  168. hide.TextScaled = true

  169. hide.TextWrapped = true

  170. hide.Size = UDim2.new(0.1, 0,1, 0)

  171. hide.Position = UDim2.new(0.9, 0,-0.15, 0)

  172. hide.Name = getrandomstring()

  173. hide.Parent = Move

  174. Name.Name = getrandomstring()

  175. Name.Parent = Move

  176. Name.BackgroundColor3 = Color3.new(1, 1, 1)

  177. Name.BackgroundTransparency = 1

  178. Name.Size = UDim2.new(0.838, 0, 1, 0)

  179. Name.Font = Enum.Font.Arial

  180. Name.Text = "FPS gui v"..ver

  181. Name.TextColor3 = Color3.new(0, 0, 0)

  182. Name.TextScaled = true

  183. Name.TextSize = 14

  184. Name.TextWrapped = true

  185. Name.TextXAlignment = Enum.TextXAlignment.Left

  186. local scr = Instance.new("ScrollingFrame")

  187. scr.Size = Main.Size

  188. scr.Position = Main.Position

  189. scr.ScrollBarThickness = 0

  190. scr.BackgroundTransparency = 1

  191. scr.Name = getrandomstring()

  192. Main.Size = UDim2.new(1, 0, 1, 0)

  193. Main.Position = UDim2.new(0,0,0,0)

  194. Main.Parent = scr

  195. scr.Parent = Move

  196. startpos = Main.Position

  197. Move.Active = true

  198. -- Scripts:

  199. hided = false

  200. hide.MouseButton1Click:Connect(function()

  201. if hided == false then

  202. hided = true

  203. Main:TweenPosition(UDim2.new(0, 0, -1.5, 0))

  204. else

  205. hided = false

  206. Main:TweenPosition(startpos)

  207. end

  208. end)

  209. aimbothiderbox.FocusLost:Connect(function()

  210. local numb = tonumber(aimbothiderbox.Text)

  211. if aimbothider == true then

  212. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)

  213. else

  214. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)

  215. end

  216. if numb ~= nil then

  217. aimbothiderspeed = numb

  218. if aimbothider == true then

  219. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"

  220. else

  221. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  222. end

  223. else

  224. if aimbothider == true then

  225. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"

  226. else

  227. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  228. end

  229. end

  230. end)

  231. local plrsforaim = {}

  232. Move.Draggable = true

  233. Gui.ResetOnSpawn = false

  234. --Gui.Name = "Chat"

  235. Gui.DisplayOrder = 999

  236. if not game:GetService("CoreGui") then

  237. Gui.Parent = plrs.LocalPlayer.PlayerGui

  238. else

  239. Gui.Parent = game:GetService("CoreGui")

  240. end

  241. f = {}

  242. local espforlder

  243. local partconverter = Instance.new("Part")

  244. f.addesp = function()

  245. pcall(function()

  246. --print("ESP ran")

  247. if espforlder then

  248. espforlder:Destroy()

  249. espforlder = Instance.new("Folder")

  250. espforlder.Parent = game.Workspace.CurrentCamera

  251. else

  252. espforlder = Instance.new("Folder")

  253. espforlder.Parent = game.Workspace.CurrentCamera

  254. end

  255. for i, v in pairs(espforlder:GetChildren()) do

  256. v:Destroy()

  257. end

  258. for _, plr in pairs(plrs:GetChildren()) do

  259. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then

  260. if TeamBased == true then

  261. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then

  262. local e = espforlder:FindFirstChild(plr.Name)

  263. if not e then

  264. local fold = Instance.new("Folder", espforlder)

  265. fold.Name = plr.Name

  266. --partconverter.BrickColor = plr.Team.Color

  267. --local teamc = partconverter.Color

  268. for i, p in pairs(plr.Character:GetChildren()) do

  269. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then

  270. local urmom = Instance.new("BoxHandleAdornment")

  271. urmom.ZIndex = 10

  272. urmom.AlwaysOnTop = true

  273. urmom.Color3 = espcolor

  274. urmom.Size = p.Size

  275. urmom.Adornee = p

  276. urmom.Name = tick().." Ur mom has big gay"

  277. urmom.Transparency = wallhack_esp_transparency

  278. urmom.Parent = fold

  279. end

  280. end

  281. plr.Character.Humanoid.Died:Connect(function()

  282. fold:Destroy()

  283. end)

  284. end

  285. end

  286. else

  287. local e = espforlder:FindFirstChild(plr.Name)

  288. if not e then

  289. local fold = Instance.new("Folder", espforlder)

  290. fold.Name = plr.Name

  291. --partconverter.BrickColor = plr.Team.Color

  292. --local teamc = Move.BackgroundColor3

  293. for i, p in pairs(plr.Character:GetChildren()) do

  294. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then

  295. local urmom = Instance.new("BoxHandleAdornment")

  296. urmom.ZIndex = 10

  297. urmom.AlwaysOnTop = true

  298. urmom.Color3 = espcolor

  299. urmom.Size = p.Size

  300. urmom.Adornee = p

  301. urmom.Name = tick().." Ur mom has big gay"

  302. urmom.Transparency = wallhack_esp_transparency

  303. urmom.Parent = fold

  304. end

  305. end

  306. plr.Character.Humanoid.Died:Connect(function()

  307. fold:Destroy()

  308. end)

  309. end

  310. end

  311. end

  312. end

  313. end)

  314. end

  315. local uis = game:GetService("UserInputService")

  316. local bringall = false

  317. local hided2 = false

  318. mouse.KeyDown:Connect(function(a)

  319. if a == "t" then

  320. --print("worked1")

  321. f.addesp()

  322. elseif a == gui_hide_button[2] and uis:IsKeyDown(gui_hide_button[1]) then

  323. if hided2 == false then

  324. hided2 = true

  325. autoesp =false

  326. if espforlder then

  327. espforlder:Destroy()

  328. end

  329. Gui.Enabled = false

  330. else

  331. Gui.Enabled = true

  332. hided2 = false

  333. end

  334. elseif a == "u" then

  335. if mouselock == false then

  336. mouselock = true

  337. else

  338. mouselock = false

  339. end

  340. elseif a == "y" then

  341. if aimbothider == false then

  342. aimbothider = true

  343. if aimbothider == true then

  344. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"

  345. else

  346. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  347. end

  348. else

  349. aimbothider = false

  350. if aimbothider == true then

  351. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"

  352. else

  353. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"

  354. end

  355. end

  356. if aimbothider == true then

  357. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)

  358. else

  359. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)

  360. end

  361. elseif a == "l" then

  362. if autoesp == false then

  363. autoesp = true

  364. else

  365. autoesp = false

  366. end

  367. elseif a == Aim_Assist_Key[2] and uis:IsKeyDown(Aim_Assist_Key[1]) then

  368. if Aim_Assist == true then

  369. Aim_Assist = false

  370. --print("disabled")

  371. else

  372. Aim_Assist = true

  373. end

  374. end

  375. if a == "j" then

  376. if mouse.Target then

  377. mouse.Target:Destroy()

  378. end

  379. end

  380. if a == key then

  381. if switch == false then

  382. switch = true

  383. else

  384. switch = false

  385. if aimatpart ~= nil then

  386. aimatpart = nil

  387. end

  388. end

  389. elseif a == teambasedswitch then

  390. if TeamBased == true then

  391. TeamBased = false

  392. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)

  393. else

  394. TeamBased = true

  395. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)

  396. end

  397. elseif a == aimkey then

  398. if not aimatpart then

  399. local maxangle = math.rad(20)

  400. for i, plr in pairs(plrs:GetChildren()) do

  401. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then

  402. if TeamBased == true then

  403. if plr.Team.Name ~= lplr.Team.Name then

  404. local an = checkfov(plr.Character.Head)

  405. if an < maxangle then

  406. maxangle = an

  407. aimatpart = plr.Character.Head

  408. end

  409. end

  410. else

  411. local an = checkfov(plr.Character.Head)

  412. if an < maxangle then

  413. maxangle = an

  414. aimatpart = plr.Character.Head

  415. end

  416. --print(plr)

  417. end

  418. local old = aimatpart

  419. plr.Character.Humanoid.Died:Connect(function()

  420. --print("died")

  421. if aimatpart and aimatpart == old then

  422. aimatpart = nil

  423. end

  424. end)

  425. end

  426. end

  427. else

  428. aimatpart = nil

  429. canaimat = false

  430. delay(1.1, function()

  431. canaimat = true

  432. end)

  433. end

  434. end

  435. end)

  436. function getfovxyz (p0, p1, deg)

  437. local x1, y1, z1 = p0:ToOrientation()

  438. local cf = CFrame.new(p0.p, p1.p)

  439. local x2, y2, z2 = cf:ToOrientation()

  440. local d = math.deg

  441. if deg then

  442. return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))

  443. else

  444. return Vector3.new((x1-x2), (y1-y2), (z1-z2))

  445. end

  446. end

  447. function aimat(part)

  448. if part then

  449. if aimbothider == true or Aim_Assist == true then

  450. cam.CFrame = cam.CFrame:Lerp(CFrame.new(cam.CFrame.p, part.CFrame.p), aimbothiderspeed)

  451. else

  452. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)

  453. end

  454. end

  455. end

  456. function checkfov (part)

  457. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)

  458. local angle = math.abs(fov.X) + math.abs(fov.Y)

  459. return angle

  460. end

  461. pcall(function()

  462. delay(0, function()

  463. while wait(.4) do

  464. if Aim_Assist and not aimatpart and canaimat and lplr.Character and lplr.Character.Humanoid and lplr.Character.Humanoid.Health > 0 then

  465. for i, plr in pairs(plrs:GetChildren()) do

  466. local minangle = math.rad(5.5)

  467. local lastpart = nil

  468. local function gg(plr)

  469. pcall(function()

  470. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Character.Head then

  471. local raycasted = false

  472. local cf1 = CFrame.new(cam.CFrame.p, plr.Character.Head.CFrame.p) * CFrame.new(0, 0, -4)

  473. local r1 = Ray.new(cf1.p, cf1.LookVector * 9000)

  474. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})

  475. local dist = (plr.Character.Head.CFrame.p- pos).magnitude

  476. if dist < 4 then

  477. raycasted = true

  478. end

  479. if raycasted == true then

  480. local an1 = getfovxyz(cam.CFrame, plr.Character.Head.CFrame)

  481. local an = abs(an1.X) + abs(an1.Y)

  482. if an < minangle then

  483. minangle = an

  484. lastpart = plr.Character.Head

  485. end

  486. end

  487. end

  488. end)

  489. end

  490. if TeamBased then

  491. if plr.Team.Name ~= lplr.Team.Name then

  492. gg(plr)

  493. end

  494. else

  495. gg(plr)

  496. end

  497. --print(math.deg(minangle))

  498. if lastpart then

  499. aimatpart = lastpart

  500. aimatpart.Parent.Humanoid.Died:Connect(function()

  501. if aimatpart == lastpart then

  502. aimatpart = nil

  503. end

  504. end)

  505. end

  506. end

  507. end

  508. end

  509. end)

  510. end)

  511. local oldheadpos

  512. local lastaimapart

  513. game:GetService("RunService").RenderStepped:Connect(function()

  514. espstatustext.Text = "Esp loop :"..tostring(autoesp)

  515. if aimatpart and lplr.Character and lplr.Character.Head then

  516. if BetterDeathCount and lastaimapart and lastaimapart == aimatpart then

  517. local dist = (oldheadpos - aimatpart.CFrame.p).magnitude

  518. if dist > 40 then

  519. aimatpart = nil

  520. end

  521. end

  522. lastaimapart = aimatpart

  523. oldheadpos = lastaimapart.CFrame.p

  524. do

  525. if aimatpart.Parent == plrs.LocalPlayer.Character then

  526. aimatpart = nil

  527. end

  528. aimat(aimatpart)

  529. pcall(function()

  530. if Aim_Assist == true then

  531. local cf1 = CFrame.new(cam.CFrame.p, aimatpart.CFrame.p) * CFrame.new(0, 0, -4)

  532. local r1 = Ray.new(cf1.p, cf1.LookVector * 1000)

  533. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})

  534. local dist = (aimatpart.CFrame.p- pos).magnitude

  535. if obj then

  536. --print(obj:GetFullName())

  537. end

  538. if not obj or dist > 6 then

  539. aimatpart = nil

  540. --print("ooof")

  541. end

  542. canaimat = false

  543. delay(.5, function()

  544. canaimat = true

  545. end)

  546. end

  547. end)

  548. end

  549. end

  550. end)

  551. delay(0, function()

  552. while wait(espupdatetime) do

  553. if auto

FPS GUI v2 -AIMBOT AND ESP- - Pastebin.com (2024)
Top Articles
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 6099

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.