Advertisement
Guest User

fa

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