Facebook
From Buff Coyote, 3 Years ago, written in Plain Text.
">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 33

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