Advertisement
Guest User

aim bot

a guest
Nov 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.77 KB | None | 0 0
  1. ESP = true --Do you want ESP?
  2. Aimbot = true --Do you want Aimbot?
  3. IgnoreWalls = false --Do you want to shoot through walls?
  4. _G.Legit = true --Do you always want to shoot headshots?
  5.  
  6. Sniper = {"INTERVENTION", "REMINGTON 700", "AWS", "L115A3", "MOSIN NAGANT", "OBREZ"}
  7. SpecialSniper = {"BFG 50", "SFG 50"}
  8. WeakSniper = {"MK11", "SKS", "SCAR SSR", "DRAGUNOV SVU", "HENRY 45-70"}
  9. SMG = {"SCAR-H", "AG-3", "M4A1", "G36C", "M4", "L22", "SCAR PDW", "SR-3M", "P90", "AUG A3 PARA", "AK12", "AN-94", "AS VAL", "SCAR-L", "AUG A1", "M16A4", "G36", "M16A3", "AUG A2", "FAMAS", "AK44", "AUG A3", "L85A2", "HONEY BADGER", "AK74", "AKM", "M231"}
  10. WeakSMG = {"MP5K", "UMP45", "MP7", "MAC10", "MP5", "COLT SMG 635", "MP5SD", "MP10", "MP5/10", "KRISS VECTOR"}
  11. ShotGun = {"REMINGTON 870", "KSG 12", "KS-23M", "SERBU SHOTGUN"}
  12. LMG = {"COLT LMG", "M60", "AUG HBAR", "MG36", "L86 LSW", "RPK", "SCAR HAMR", "RPK74"}
  13. Other = {"M9", "GLOCK 17", "M1911", "DEAGLE 44", "GLOCK 18", "M93R", "TEC9", "MP412 REX"}
  14. Melee = {"KNIFE", "MACHETE"}
  15.  
  16. warn("Version: 1.0.0, Welcome To Project Bear's ESP, Report bugs to the Project Bear Discord.")
  17.  
  18.  
  19. local camera = workspace.CurrentCamera
  20. local ScreenX, ScreenY = workspace.CurrentCamera.ViewportSize.X, workspace.CurrentCamera.ViewportSize.Y
  21. local inversePi = 1 / math.pi
  22. _G.FOV = 9
  23. local magic = _G.FOV*inversePi
  24. _G.ignoreFOV = false
  25. local aim_through_list = {nil, nil, nil}
  26. local distance
  27. local ignore
  28. local distance2
  29. Pixels = ScreenX * ScreenY
  30. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  31. Radius = math.sqrt(Pixels*magic)
  32. local viable
  33. local your_head = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Head")
  34. local ray_start
  35. local vector
  36. _G.ignoreWalls = true
  37. _G.ShootingTeam = false
  38. local enabled = false
  39. local target
  40.  
  41.  
  42. local function ReturnF(player, bone)
  43. if not bone and player.Character:FindFirstChild(bone) then
  44. return {_, false}
  45. end
  46. return camera:WorldToScreenPoint(player.Character[bone].Position)
  47. end
  48. local function checksight(player)
  49. local screen_position, in_fov = ReturnF(player, "Head") -- end my life
  50. if not (in_fov or _G.ignoreFOV) then
  51. return false
  52. else -- bug here with fov checks
  53. if (not _G.ignoreFOV) and (_G.FOV~=-1) then
  54. local distance2 = (Vector2.new(screen_position.X, screen_position.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  55. if distance2<=Radius then
  56. return player, screen_position
  57. end
  58. return false
  59. else
  60. return player, screen_position
  61. end
  62. end
  63. end
  64.  
  65.  
  66. local function ViableP()
  67. aim_through_list[1] = game:GetService("Players").LocalPlayer.Character
  68. local distance = 1000
  69. local closest_distance = 1000
  70. local most_viable_player = nil
  71. for i, player_being_checked in pairs(game:GetService("Players"):GetPlayers()) do
  72. local player_or_false, targets_coordinates = checksight(player_being_checked)
  73. if (player_or_false) then
  74. local char = player_being_checked.Character
  75. local target_torso = char and char:FindFirstChild "Torso"
  76. if (camera.Focus.p - camera.CoordinateFrame.p).magnitude <= 1 then
  77. ray_start = your_head.Position + your_head.CFrame.lookVector * 16 + Vector3.new(0, 4, 0)
  78. else
  79. ray_start = your_head.Position + Vector3.new(0, 4, 0)
  80. end
  81. if not targets_coordinates then
  82. distance = (Vector2.new(targets_coordinates.X, targets_coordinates.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  83. else
  84. distance = (Vector2.new(targets_coordinates.X, targets_coordinates.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  85. end
  86. vector = (target_torso.Position - ray_start)
  87. if char:FindFirstChild("Head") then
  88. if (not targets_coordinates) or (distance <= closest_distance) then
  89. local new_ray = Ray.new(ray_start, vector.unit * 1000) -- "fire" ray and make sure to ignore our own character
  90. local hit, position = workspace:FindPartOnRayWithIgnoreList(new_ray, aim_through_list) -- check if the ray hit anything and if it's a descendant of the target's character
  91. if (hit and hit:isDescendantOf(char)) or _G.ignoreWalls then
  92. if char.HumanoidRootPart:FindFirstChild("ESP") then
  93. if char.HumanoidRootPart.ESP.Frame.BackgroundColor3 == Color3.new(1, 0.666667, 0) or char.HumanoidRootPart.ESP.Frame.BackgroundColor3 == Color3.new(0, 1, 0.498039) then
  94. closest_distance = distance
  95. most_viable_player = player_being_checked
  96. target = player_being_checked
  97. else
  98. if IgnoreWalls == false then
  99. most_viable_player = nil
  100. target = nil
  101. elseif IgnoreWalls == true then
  102. closest_distance = distance
  103. most_viable_player = player_being_checked
  104. target = player_being_checked
  105.  
  106. end
  107. end
  108. else
  109.  
  110. if IgnoreWalls == false then
  111. most_viable_player = nil
  112. target = nil
  113. elseif IgnoreWalls == true then
  114. closest_distance = distance
  115. most_viable_player = player_being_checked
  116. target = player_being_checked
  117.  
  118. end
  119.  
  120. end
  121. else
  122. most_viable_player = nil
  123. target = nil
  124. end -- hit or ignore walls
  125. end -- meets distance or no priority
  126. end
  127. end
  128. end
  129. return most_viable_player
  130. end
  131.  
  132.  
  133.  
  134.  
  135.  
  136. game:GetService("RunService").Heartbeat:connect(function()
  137.  
  138.  
  139.  
  140.  
  141.  
  142. if Aimbot == true then
  143. ViableP()
  144. workspace.DeadBody:ClearAllChildren()
  145. wep = nil
  146. for i,v in pairs(workspace.Camera:GetChildren()) do
  147. if v:FindFirstChild("Flame") then
  148. wep = v
  149. break
  150. end
  151. end
  152. if wep and target ~= nil then
  153. if target.TeamColor ~= game:GetService("Players").LocalPlayer.TeamColor then
  154. wep.Flame.Size = Vector3.new(1,5,1)
  155. wep.Flame.Anchored = true
  156. if target.Character:FindFirstChild("Head") then
  157. if _G.Legit == false then
  158. wep.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,1.9) -- this is where the magic is
  159. elseif _G.Legit == true then
  160. wep = false
  161. Type = nil
  162.  
  163. Current = nil
  164. for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
  165. if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
  166. if v:IsA("Model") then
  167. if v:FindFirstChild("Flame") then
  168. Current = v
  169. break
  170. end
  171. end
  172. end
  173. end
  174.  
  175. if wep == false then
  176. for i = 1,#LMG do
  177. if Current ~= nil then
  178. if LMG[i] == Current.Name then
  179. wep = true
  180. Type = "LMG"
  181. break
  182. end
  183. end
  184. end
  185. end
  186.  
  187. if wep == false then
  188. for i = 1,#SMG do
  189. if Current ~= nil then
  190. if SMG[i] == Current.Name then
  191. wep = true
  192. Type = "SMG"
  193. break
  194. end
  195. end
  196. end
  197. end
  198.  
  199. if wep == false then
  200. for i = 1,#WeakSMG do
  201. if Current ~= nil then
  202. if WeakSMG[i] == Current.Name then
  203. wep = true
  204. Type = "WeakSMG"
  205. break
  206. end
  207. end
  208. end
  209. end
  210.  
  211. if wep == false then
  212. for i = 1,#Other do
  213. if Current ~= nil then
  214. if Other[i] == Current.Name then
  215. wep = true
  216. Type = "Other"
  217. break
  218. end
  219. end
  220. end
  221. end
  222.  
  223. if wep == false then
  224. for i = 1,#ShotGun do
  225. if Current ~= nil then
  226. if ShotGun[i] == Current.Name then
  227. wep = true
  228. Type = "ShotGun"
  229. break
  230. end
  231. end
  232. end
  233. end
  234. if Type == nil then
  235. random = math.random(1,3)
  236. if random == 1 then
  237. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  238. end
  239. if random >= 2 and random <= 3 then
  240. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  241. end
  242. elseif Type == "LMG" then
  243. if ((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - target.Character.HumanoidRootPart.Position).magnitude) <= 150 then
  244. random = math.random(1,6)
  245. if random == 1 then
  246. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  247. end
  248. if random >= 2 and random <= 3 then
  249. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  250. end
  251. if random >= 4 and random <= 6 then
  252. Current.Flame.CFrame = CFrame.new(0,0,0)
  253. end
  254. else
  255. random = math.random(1,10)
  256. if random == 1 then
  257. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  258. end
  259. if random >= 2 and random <= 3 then
  260. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  261. end
  262. if random >= 4 and random <= 10 then
  263. Current.Flame.CFrame = CFrame.new(0,0,0)
  264. end
  265.  
  266. end
  267. elseif Type == "ShotGun" then
  268. random = math.random(1,5)
  269. if random == 1 then
  270. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  271. end
  272. if random >= 2 and random <= 3 then
  273. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  274. end
  275. if random >= 4 and random <= 5 then
  276. Current.Flame.CFrame = CFrame.new(0,0,0)
  277. end
  278. elseif Type == "WeakSMG" or Type == "SMG" then
  279. if ((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - target.Character.HumanoidRootPart.Position).magnitude) <= 125 then
  280. random = math.random(1,6)
  281. if random == 1 then
  282. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  283. end
  284. if random >= 2 and random <= 3 then
  285. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  286. end
  287. if random >= 4 and random <= 6 then
  288. Current.Flame.CFrame = CFrame.new(0,0,0)
  289. end
  290. else
  291. random = math.random(1,8)
  292. if random == 1 then
  293. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  294. end
  295. if random >= 2 and random <= 3 then
  296. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  297. end
  298. if random >= 4 and random <= 8 then
  299. Current.Flame.CFrame = CFrame.new(0,0,0)
  300. end
  301.  
  302. end
  303. elseif Type == "Other" then
  304. random = math.random(1,6)
  305. if random == 1 then
  306. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  307. end
  308. if random >= 2 and random <= 4 then
  309. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  310. end
  311. if random >= 5 and random <= 6 then
  312. Current.Flame.CFrame = CFrame.new(0,0,0)
  313. end
  314. end
  315. end
  316. end
  317. end
  318. end
  319. end
  320.  
  321.  
  322.  
  323.  
  324.  
  325. if ESP == true then
  326. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  327. pass = false
  328. if workspace:FindFirstChild(v.Name) then
  329. if v.Team == game:GetService("Players").LocalPlayer.Team then
  330. if v.Character:FindFirstChild("HumanoidRootPart") then
  331. if v.Character.HumanoidRootPart:FindFirstChild("ESP") then
  332. v.Character.HumanoidRootPart.ESP:Destroy()
  333. end
  334. end
  335. end
  336. if v.Team ~= game:GetService("Players").LocalPlayer.Team then
  337. if v.Character:FindFirstChild("HumanoidRootPart") then
  338. for i,v in pairs(v.Character:GetChildren()) do
  339. if v:IsA("Model") then
  340. pass = true
  341. break
  342. end
  343. end
  344.  
  345. shirt = nil
  346. passer = false
  347. for i,v in pairs(v.Character:GetChildren()) do
  348. if v:IsA("Shirt") then
  349. shirt = v
  350. break
  351. end
  352. end
  353.  
  354. for i,v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  355. if v:IsA("Shirt") then
  356. if shirt ~= nil then
  357. if v.Name ~= shirt.Name then
  358. passer = true
  359. break
  360. end
  361. end
  362. end
  363. end
  364.  
  365. if passer == true then
  366. if v.Character:FindFirstChild("HumanoidRootPart") then
  367. if v.Character.HumanoidRootPart:FindFirstChild("ESP") then
  368.  
  369. v.Character.HumanoidRootPart.ESP.TextLabel.Text = v.Name.." Distance: "..math.floor(((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude))
  370.  
  371. hitting = false
  372.  
  373.  
  374. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p, (v.Character.HumanoidRootPart.CFrame.p - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p).unit * 2000)
  375. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
  376. if part then
  377. if part.Parent == v.Character then
  378. hitting = true
  379. end
  380. end
  381. if hitting == false then
  382. elseif hitting == true then
  383. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  384. end
  385.  
  386. if hitting == false then
  387. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.Head.CFrame.p, (v.Character.Head.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.CFrame.p).unit * 2000)
  388. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
  389. if part then
  390. if part.Parent == v.Character then
  391. hitting = true
  392. end
  393. end
  394. if hitting == false then
  395. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  396. elseif hitting == true then
  397. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  398. end
  399.  
  400. if hitting == false then
  401. elseif hitting == true then
  402. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  403. end
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415. if hitting == false then
  416. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p, (v.Character.HumanoidRootPart.CFrame.p - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p).unit * 2000)
  417. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
  418. if part then
  419. if part:IsA("BasePart") then
  420.  
  421. CurrentGun = nil
  422. for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
  423. if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
  424. if v:IsA("Model") then
  425. if v:FindFirstChild("Flame") then
  426. CurrentGun = v
  427. break
  428. end
  429. end
  430. end
  431. end
  432.  
  433. found = false
  434.  
  435. if found == false then
  436. for i = 1,#Sniper do
  437. if CurrentGun ~= nil then
  438. if Sniper[i] == CurrentGun.Name then
  439. found = true
  440. Min = 2.75
  441. Max = 3
  442. break
  443. end
  444. end
  445. end
  446. end
  447.  
  448. if found == false then
  449. for i = 1,#SpecialSniper do
  450. if CurrentGun ~= nil then
  451. if SpecialSniper[i] == CurrentGun.Name then
  452. found = true
  453. Min = 3.25
  454. Max = 3.5
  455. break
  456. end
  457. end
  458. end
  459. end
  460.  
  461. if found == false then
  462. for i = 1,#WeakSniper do
  463. if CurrentGun ~= nil then
  464. if WeakSniper[i] == CurrentGun.Name then
  465. found = true
  466. Min = 2.75
  467. Max = 3
  468. break
  469. end
  470. end
  471. end
  472. end
  473.  
  474. if found == false then
  475. for i = 1,#WeakSMG do
  476. if CurrentGun ~= nil then
  477. if WeakSMG[i] == CurrentGun.Name then
  478. found = true
  479. Min = 2.25
  480. Max = 3
  481. break
  482. end
  483. end
  484. end
  485. end
  486.  
  487. if found == false then
  488. for i = 1,#SMG do
  489. if CurrentGun ~= nil then
  490. if SMG[i] == CurrentGun.Name then
  491. found = true
  492. Min = 2.5
  493. Max = 3
  494. break
  495. end
  496. end
  497. end
  498. end
  499.  
  500. if found == false then
  501. for i = 1,#ShotGun do
  502. if CurrentGun ~= nil then
  503. if ShotGun[i] == CurrentGun.Name then
  504. found = true
  505. Min = 2.75
  506. Max = 3
  507. break
  508. end
  509. end
  510. end
  511. end
  512.  
  513. if found == false then
  514. for i = 1,#LMG do
  515. if CurrentGun ~= nil then
  516. if LMG[i] == CurrentGun.Name then
  517. found = true
  518. Min = 2.5
  519. Max = 3
  520. break
  521. end
  522. end
  523. end
  524. end
  525.  
  526. if found == false then
  527. for i = 1,#Other do
  528. if CurrentGun ~= nil then
  529. if Other[i] == CurrentGun.Name then
  530. found = true
  531. Min = 0
  532. Max = 0
  533. break
  534. end
  535. end
  536. end
  537. end
  538.  
  539. if found == false then
  540. for i = 1,#Melee do
  541. if CurrentGun ~= nil then
  542. if Melee[i] == CurrentGun.Name then
  543. found = true
  544. Min = 0
  545. Max = 0
  546. break
  547. end
  548. end
  549. end
  550. end
  551.  
  552. if found == false then
  553. Min = 0
  554. Max = 0
  555. end
  556.  
  557. if part.Parent.Name == "Map" then
  558. if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  559. hitting = true
  560. parter = part
  561. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
  562. hitting = true
  563. parter = part
  564. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
  565. hitting = true
  566. parter = part
  567. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
  568. hitting = true
  569. parter = part
  570. elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
  571. hitting = true
  572. parter = part
  573. elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
  574. hitting = true
  575. parter = part
  576. elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
  577. hitting = true
  578. parter = part
  579. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
  580. hitting = true
  581. parter = part
  582. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  583. hitting = true
  584. parter = part
  585. elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
  586. hitting = true
  587. parter = part
  588. end
  589. end
  590. end
  591. end
  592. if hitting == true then
  593. hitting = false
  594. part = parter
  595. list = {}
  596. pos1 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
  597. pos2 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
  598. Reg = Region3.new(pos1, pos2)
  599. TouchingParts = game.Workspace:FindPartsInRegion3(Reg)
  600. o = 1
  601. if TouchingParts ~= nil then
  602. for i,v in pairs(TouchingParts) do
  603. if v ~= parter then
  604.  
  605.  
  606. part = v
  607. if part.Parent.Name == "Map" then
  608. if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  609. hitting = true
  610. parter = part
  611. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
  612. hitting = true
  613. parter = part
  614. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
  615. hitting = true
  616. parter = part
  617. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
  618. hitting = true
  619. parter = part
  620. elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
  621. hitting = true
  622. parter = part
  623. elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
  624. hitting = true
  625. parter = part
  626. elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
  627. hitting = true
  628. parter = part
  629. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
  630. hitting = true
  631. parter = part
  632. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  633. hitting = true
  634. parter = part
  635. elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
  636. hitting = true
  637. parter = part
  638. end
  639. end
  640.  
  641.  
  642. if hitting == true then
  643. table.insert(list, o, v)
  644. o = o + 1
  645. end
  646. end
  647. end
  648. end
  649.  
  650. hitting = false
  651.  
  652. part = parter
  653.  
  654. pos1 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
  655. pos2 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
  656.  
  657. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p, (v.Character.HumanoidRootPart.CFrame.p - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p).unit * 2000)
  658. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore, parter, unpack(list)}, false, true)
  659. if part then
  660. if part.Parent == v.Character then
  661. hitting = true
  662. end
  663. end
  664. if hitting == false then
  665. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  666. elseif hitting == true then
  667. if ((parter.Position - v.Character.HumanoidRootPart.Position).magnitude) <= 40 then
  668. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  669. else
  670. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  671. end
  672. end
  673.  
  674. elseif hitting == false then
  675. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  676. end
  677. end
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688. if hitting == false then
  689. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.Head.CFrame.p, (v.Character.Head.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.CFrame.p).unit * 2000)
  690. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
  691. if part then
  692. if part:IsA("BasePart") then
  693.  
  694. CurrentGun = nil
  695. for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
  696. if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
  697. if v:IsA("Model") then
  698. if v:FindFirstChild("Flame") then
  699. CurrentGun = v
  700. break
  701. end
  702. end
  703. end
  704. end
  705.  
  706. found = false
  707.  
  708. if found == false then
  709. for i = 1,#Sniper do
  710. if CurrentGun ~= nil then
  711. if Sniper[i] == CurrentGun.Name then
  712. found = true
  713. Min = 2.75
  714. Max = 3
  715. break
  716. end
  717. end
  718. end
  719. end
  720.  
  721. if found == false then
  722. for i = 1,#SpecialSniper do
  723. if CurrentGun ~= nil then
  724. if SpecialSniper[i] == CurrentGun.Name then
  725. found = true
  726. Min = 3.25
  727. Max = 3.5
  728. break
  729. end
  730. end
  731. end
  732. end
  733.  
  734. if found == false then
  735. for i = 1,#WeakSniper do
  736. if CurrentGun ~= nil then
  737. if WeakSniper[i] == CurrentGun.Name then
  738. found = true
  739. Min = 2.75
  740. Max = 3
  741. break
  742. end
  743. end
  744. end
  745. end
  746.  
  747. if found == false then
  748. for i = 1,#WeakSMG do
  749. if CurrentGun ~= nil then
  750. if WeakSMG[i] == CurrentGun.Name then
  751. found = true
  752. Min = 2.25
  753. Max = 3
  754. break
  755. end
  756. end
  757. end
  758. end
  759.  
  760. if found == false then
  761. for i = 1,#SMG do
  762. if CurrentGun ~= nil then
  763. if SMG[i] == CurrentGun.Name then
  764. found = true
  765. Min = 2.5
  766. Max = 3
  767. break
  768. end
  769. end
  770. end
  771. end
  772.  
  773. if found == false then
  774. for i = 1,#ShotGun do
  775. if CurrentGun ~= nil then
  776. if ShotGun[i] == CurrentGun.Name then
  777. found = true
  778. Min = 2.75
  779. Max = 3
  780. break
  781. end
  782. end
  783. end
  784. end
  785.  
  786. if found == false then
  787. for i = 1,#LMG do
  788. if CurrentGun ~= nil then
  789. if LMG[i] == CurrentGun.Name then
  790. found = true
  791. Min = 2.5
  792. Max = 3
  793. break
  794. end
  795. end
  796. end
  797. end
  798.  
  799. if found == false then
  800. for i = 1,#Other do
  801. if CurrentGun ~= nil then
  802. if Other[i] == CurrentGun.Name then
  803. found = true
  804. Min = 0
  805. Max = 0
  806. break
  807. end
  808. end
  809. end
  810. end
  811.  
  812. if found == false then
  813. for i = 1,#Melee do
  814. if CurrentGun ~= nil then
  815. if Melee[i] == CurrentGun.Name then
  816. found = true
  817. Min = 0
  818. Max = 0
  819. break
  820. end
  821. end
  822. end
  823. end
  824.  
  825. if found == false then
  826. Min = 0
  827. Max = 0
  828. end
  829.  
  830. if part.Parent.Name == "Map" then
  831. if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  832. hitting = true
  833. parter = part
  834. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
  835. hitting = true
  836. parter = part
  837. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
  838. hitting = true
  839. parter = part
  840. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
  841. hitting = true
  842. parter = part
  843. elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
  844. hitting = true
  845. parter = part
  846. elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
  847. hitting = true
  848. parter = part
  849. elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
  850. hitting = true
  851. parter = part
  852. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
  853. hitting = true
  854. parter = part
  855. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  856. hitting = true
  857. parter = part
  858. elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
  859. hitting = true
  860. parter = part
  861. end
  862. end
  863. end
  864. end
  865. if hitting == true then
  866. hitting = false
  867. part = parter
  868. list = {}
  869. pos1 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
  870. pos2 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
  871. Reg = Region3.new(pos1, pos2)
  872. TouchingParts = game.Workspace:FindPartsInRegion3(Reg)
  873. o = 1
  874. if TouchingParts ~= nil then
  875. for i,v in pairs(TouchingParts) do
  876. if v ~= parter then
  877.  
  878.  
  879. part = v
  880. if part.Parent.Name == "Map" then
  881. if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  882. hitting = true
  883. parter = part
  884. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
  885. hitting = true
  886. parter = part
  887. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
  888. hitting = true
  889. parter = part
  890. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
  891. hitting = true
  892. parter = part
  893. elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
  894. hitting = true
  895. parter = part
  896. elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
  897. hitting = true
  898. parter = part
  899. elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
  900. hitting = true
  901. parter = part
  902. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
  903. hitting = true
  904. parter = part
  905. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  906. hitting = true
  907. parter = part
  908. elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
  909. hitting = true
  910. parter = part
  911. end
  912. end
  913.  
  914.  
  915. if hitting == true then
  916. table.insert(list, o, v)
  917. o = o + 1
  918. end
  919. end
  920. end
  921. end
  922.  
  923. hitting = false
  924.  
  925. part = parter
  926.  
  927. pos1 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
  928. pos2 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
  929.  
  930. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.Head.CFrame.p, (v.Character.Head.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.CFrame.p).unit * 2000)
  931. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore, parter, unpack(list)}, false, true)
  932. if part then
  933. if part.Parent == v.Character then
  934. hitting = true
  935. end
  936. end
  937. if hitting == false then
  938. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  939. elseif hitting == true then
  940. if ((parter.Position - v.Character.HumanoidRootPart.Position).magnitude) <= 40 then
  941. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  942. else
  943. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  944. end
  945. end
  946.  
  947. elseif hitting == false then
  948. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  949. end
  950. end
  951. end
  952.  
  953.  
  954.  
  955. elseif pass == true then
  956. local ESP = Instance.new("BillboardGui",v.Character.HumanoidRootPart)
  957. ESP.Name = "ESP"
  958. ESP.Size = UDim2.new(6, 0, 8, 0)
  959. ESP.StudsOffset = Vector3.new(0, 0.75, 0)
  960. ESP.AlwaysOnTop = true
  961. local Frame = Instance.new("Frame",ESP)
  962. Frame.ZIndex = 1000
  963. Frame.Size = UDim2.new(0.6, 0, 0.8, 0)
  964. Frame.Position = UDim2.new(0.2, 0, 0.3, 0)
  965. Frame.BorderSizePixel = 3
  966. Frame.BackgroundTransparency = 0.3
  967. Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  968. Label = Instance.new("TextLabel", ESP)
  969. Label.Position = UDim2.new(0, 0, -0.1, 0)
  970. Label.Size = UDim2.new(1, 0, 0.3, 0)
  971. Label.Font = "SourceSansLight"
  972. Label.TextColor3 = Color3.new(1,1,1)
  973. Label.TextStrokeColor3 = Color3.new(0,0,0)
  974. Label.TextStrokeTransparency = 0
  975. Label.BackgroundColor3 = Color3.new(1, 1, 1)
  976. Label.TextScaled = true
  977. Label.Text = v.Name.." Distance: "..math.floor(((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude))
  978. Label.BackgroundTransparency = 1
  979. end
  980. end
  981. end
  982. end
  983. end
  984. end
  985. end
  986. end
  987. end)
  988. RAW Paste Data
  989.  
  990. ESP = true --Do you want ESP?
  991. Aimbot = true --Do you want Aimbot?
  992. IgnoreWalls = false --Do you want to shoot through walls?
  993. _G.Legit = true --Do you always want to shoot headshots?
  994.  
  995. Sniper = {"INTERVENTION", "REMINGTON 700", "AWS", "L115A3", "MOSIN NAGANT", "OBREZ"}
  996. SpecialSniper = {"BFG 50", "SFG 50"}
  997. WeakSniper = {"MK11", "SKS", "SCAR SSR", "DRAGUNOV SVU", "HENRY 45-70"}
  998. SMG = {"SCAR-H", "AG-3", "M4A1", "G36C", "M4", "L22", "SCAR PDW", "SR-3M", "P90", "AUG A3 PARA", "AK12", "AN-94", "AS VAL", "SCAR-L", "AUG A1", "M16A4", "G36", "M16A3", "AUG A2", "FAMAS", "AK44", "AUG A3", "L85A2", "HONEY BADGER", "AK74", "AKM", "M231"}
  999. WeakSMG = {"MP5K", "UMP45", "MP7", "MAC10", "MP5", "COLT SMG 635", "MP5SD", "MP10", "MP5/10", "KRISS VECTOR"}
  1000. ShotGun = {"REMINGTON 870", "KSG 12", "KS-23M", "SERBU SHOTGUN"}
  1001. LMG = {"COLT LMG", "M60", "AUG HBAR", "MG36", "L86 LSW", "RPK", "SCAR HAMR", "RPK74"}
  1002. Other = {"M9", "GLOCK 17", "M1911", "DEAGLE 44", "GLOCK 18", "M93R", "TEC9", "MP412 REX"}
  1003. Melee = {"KNIFE", "MACHETE"}
  1004.  
  1005. warn("Version: 1.0.0, Welcome To Project Bear's ESP, Report bugs to the Project Bear Discord.")
  1006.  
  1007.  
  1008. local camera = workspace.CurrentCamera
  1009. local ScreenX, ScreenY = workspace.CurrentCamera.ViewportSize.X, workspace.CurrentCamera.ViewportSize.Y
  1010. local inversePi = 1 / math.pi
  1011. _G.FOV = 9
  1012. local magic = _G.FOV*inversePi
  1013. _G.ignoreFOV = false
  1014. local aim_through_list = {nil, nil, nil}
  1015. local distance
  1016. local ignore
  1017. local distance2
  1018. Pixels = ScreenX * ScreenY
  1019. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  1020. Radius = math.sqrt(Pixels*magic)
  1021. local viable
  1022. local your_head = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Head")
  1023. local ray_start
  1024. local vector
  1025. _G.ignoreWalls = true
  1026. _G.ShootingTeam = false
  1027. local enabled = false
  1028. local target
  1029.  
  1030.  
  1031. local function ReturnF(player, bone)
  1032. if not bone and player.Character:FindFirstChild(bone) then
  1033. return {_, false}
  1034. end
  1035. return camera:WorldToScreenPoint(player.Character[bone].Position)
  1036. end
  1037. local function checksight(player)
  1038. local screen_position, in_fov = ReturnF(player, "Head") -- end my life
  1039. if not (in_fov or _G.ignoreFOV) then
  1040. return false
  1041. else -- bug here with fov checks
  1042. if (not _G.ignoreFOV) and (_G.FOV~=-1) then
  1043. local distance2 = (Vector2.new(screen_position.X, screen_position.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  1044. if distance2<=Radius then
  1045. return player, screen_position
  1046. end
  1047. return false
  1048. else
  1049. return player, screen_position
  1050. end
  1051. end
  1052. end
  1053.  
  1054.  
  1055. local function ViableP()
  1056. aim_through_list[1] = game:GetService("Players").LocalPlayer.Character
  1057. local distance = 1000
  1058. local closest_distance = 1000
  1059. local most_viable_player = nil
  1060. for i, player_being_checked in pairs(game:GetService("Players"):GetPlayers()) do
  1061. local player_or_false, targets_coordinates = checksight(player_being_checked)
  1062. if (player_or_false) then
  1063. local char = player_being_checked.Character
  1064. local target_torso = char and char:FindFirstChild "Torso"
  1065. if (camera.Focus.p - camera.CoordinateFrame.p).magnitude <= 1 then
  1066. ray_start = your_head.Position + your_head.CFrame.lookVector * 16 + Vector3.new(0, 4, 0)
  1067. else
  1068. ray_start = your_head.Position + Vector3.new(0, 4, 0)
  1069. end
  1070. if not targets_coordinates then
  1071. distance = (Vector2.new(targets_coordinates.X, targets_coordinates.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  1072. else
  1073. distance = (Vector2.new(targets_coordinates.X, targets_coordinates.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  1074. end
  1075. vector = (target_torso.Position - ray_start)
  1076. if char:FindFirstChild("Head") then
  1077. if (not targets_coordinates) or (distance <= closest_distance) then
  1078. local new_ray = Ray.new(ray_start, vector.unit * 1000) -- "fire" ray and make sure to ignore our own character
  1079. local hit, position = workspace:FindPartOnRayWithIgnoreList(new_ray, aim_through_list) -- check if the ray hit anything and if it's a descendant of the target's character
  1080. if (hit and hit:isDescendantOf(char)) or _G.ignoreWalls then
  1081. if char.HumanoidRootPart:FindFirstChild("ESP") then
  1082. if char.HumanoidRootPart.ESP.Frame.BackgroundColor3 == Color3.new(1, 0.666667, 0) or char.HumanoidRootPart.ESP.Frame.BackgroundColor3 == Color3.new(0, 1, 0.498039) then
  1083. closest_distance = distance
  1084. most_viable_player = player_being_checked
  1085. target = player_being_checked
  1086. else
  1087. if IgnoreWalls == false then
  1088. most_viable_player = nil
  1089. target = nil
  1090. elseif IgnoreWalls == true then
  1091. closest_distance = distance
  1092. most_viable_player = player_being_checked
  1093. target = player_being_checked
  1094.  
  1095. end
  1096. end
  1097. else
  1098.  
  1099. if IgnoreWalls == false then
  1100. most_viable_player = nil
  1101. target = nil
  1102. elseif IgnoreWalls == true then
  1103. closest_distance = distance
  1104. most_viable_player = player_being_checked
  1105. target = player_being_checked
  1106.  
  1107. end
  1108.  
  1109. end
  1110. else
  1111. most_viable_player = nil
  1112. target = nil
  1113. end -- hit or ignore walls
  1114. end -- meets distance or no priority
  1115. end
  1116. end
  1117. end
  1118. return most_viable_player
  1119. end
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125. game:GetService("RunService").Heartbeat:connect(function()
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131. if Aimbot == true then
  1132. ViableP()
  1133. workspace.DeadBody:ClearAllChildren()
  1134. wep = nil
  1135. for i,v in pairs(workspace.Camera:GetChildren()) do
  1136. if v:FindFirstChild("Flame") then
  1137. wep = v
  1138. break
  1139. end
  1140. end
  1141. if wep and target ~= nil then
  1142. if target.TeamColor ~= game:GetService("Players").LocalPlayer.TeamColor then
  1143. wep.Flame.Size = Vector3.new(1,5,1)
  1144. wep.Flame.Anchored = true
  1145. if target.Character:FindFirstChild("Head") then
  1146. if _G.Legit == false then
  1147. wep.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,1.9) -- this is where the magic is
  1148. elseif _G.Legit == true then
  1149. wep = false
  1150. Type = nil
  1151.  
  1152. Current = nil
  1153. for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
  1154. if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
  1155. if v:IsA("Model") then
  1156. if v:FindFirstChild("Flame") then
  1157. Current = v
  1158. break
  1159. end
  1160. end
  1161. end
  1162. end
  1163.  
  1164. if wep == false then
  1165. for i = 1,#LMG do
  1166. if Current ~= nil then
  1167. if LMG[i] == Current.Name then
  1168. wep = true
  1169. Type = "LMG"
  1170. break
  1171. end
  1172. end
  1173. end
  1174. end
  1175.  
  1176. if wep == false then
  1177. for i = 1,#SMG do
  1178. if Current ~= nil then
  1179. if SMG[i] == Current.Name then
  1180. wep = true
  1181. Type = "SMG"
  1182. break
  1183. end
  1184. end
  1185. end
  1186. end
  1187.  
  1188. if wep == false then
  1189. for i = 1,#WeakSMG do
  1190. if Current ~= nil then
  1191. if WeakSMG[i] == Current.Name then
  1192. wep = true
  1193. Type = "WeakSMG"
  1194. break
  1195. end
  1196. end
  1197. end
  1198. end
  1199.  
  1200. if wep == false then
  1201. for i = 1,#Other do
  1202. if Current ~= nil then
  1203. if Other[i] == Current.Name then
  1204. wep = true
  1205. Type = "Other"
  1206. break
  1207. end
  1208. end
  1209. end
  1210. end
  1211.  
  1212. if wep == false then
  1213. for i = 1,#ShotGun do
  1214. if Current ~= nil then
  1215. if ShotGun[i] == Current.Name then
  1216. wep = true
  1217. Type = "ShotGun"
  1218. break
  1219. end
  1220. end
  1221. end
  1222. end
  1223. if Type == nil then
  1224. random = math.random(1,3)
  1225. if random == 1 then
  1226. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1227. end
  1228. if random >= 2 and random <= 3 then
  1229. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1230. end
  1231. elseif Type == "LMG" then
  1232. if ((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - target.Character.HumanoidRootPart.Position).magnitude) <= 150 then
  1233. random = math.random(1,6)
  1234. if random == 1 then
  1235. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1236. end
  1237. if random >= 2 and random <= 3 then
  1238. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1239. end
  1240. if random >= 4 and random <= 6 then
  1241. Current.Flame.CFrame = CFrame.new(0,0,0)
  1242. end
  1243. else
  1244. random = math.random(1,10)
  1245. if random == 1 then
  1246. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1247. end
  1248. if random >= 2 and random <= 3 then
  1249. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1250. end
  1251. if random >= 4 and random <= 10 then
  1252. Current.Flame.CFrame = CFrame.new(0,0,0)
  1253. end
  1254.  
  1255. end
  1256. elseif Type == "ShotGun" then
  1257. random = math.random(1,5)
  1258. if random == 1 then
  1259. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1260. end
  1261. if random >= 2 and random <= 3 then
  1262. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1263. end
  1264. if random >= 4 and random <= 5 then
  1265. Current.Flame.CFrame = CFrame.new(0,0,0)
  1266. end
  1267. elseif Type == "WeakSMG" or Type == "SMG" then
  1268. if ((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - target.Character.HumanoidRootPart.Position).magnitude) <= 125 then
  1269. random = math.random(1,6)
  1270. if random == 1 then
  1271. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1272. end
  1273. if random >= 2 and random <= 3 then
  1274. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1275. end
  1276. if random >= 4 and random <= 6 then
  1277. Current.Flame.CFrame = CFrame.new(0,0,0)
  1278. end
  1279. else
  1280. random = math.random(1,8)
  1281. if random == 1 then
  1282. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1283. end
  1284. if random >= 2 and random <= 3 then
  1285. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1286. end
  1287. if random >= 4 and random <= 8 then
  1288. Current.Flame.CFrame = CFrame.new(0,0,0)
  1289. end
  1290.  
  1291. end
  1292. elseif Type == "Other" then
  1293. random = math.random(1,6)
  1294. if random == 1 then
  1295. Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1296. end
  1297. if random >= 2 and random <= 4 then
  1298. Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
  1299. end
  1300. if random >= 5 and random <= 6 then
  1301. Current.Flame.CFrame = CFrame.new(0,0,0)
  1302. end
  1303. end
  1304. end
  1305. end
  1306. end
  1307. end
  1308. end
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314. if ESP == true then
  1315. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  1316. pass = false
  1317. if workspace:FindFirstChild(v.Name) then
  1318. if v.Team == game:GetService("Players").LocalPlayer.Team then
  1319. if v.Character:FindFirstChild("HumanoidRootPart") then
  1320. if v.Character.HumanoidRootPart:FindFirstChild("ESP") then
  1321. v.Character.HumanoidRootPart.ESP:Destroy()
  1322. end
  1323. end
  1324. end
  1325. if v.Team ~= game:GetService("Players").LocalPlayer.Team then
  1326. if v.Character:FindFirstChild("HumanoidRootPart") then
  1327. for i,v in pairs(v.Character:GetChildren()) do
  1328. if v:IsA("Model") then
  1329. pass = true
  1330. break
  1331. end
  1332. end
  1333.  
  1334. shirt = nil
  1335. passer = false
  1336. for i,v in pairs(v.Character:GetChildren()) do
  1337. if v:IsA("Shirt") then
  1338. shirt = v
  1339. break
  1340. end
  1341. end
  1342.  
  1343. for i,v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  1344. if v:IsA("Shirt") then
  1345. if shirt ~= nil then
  1346. if v.Name ~= shirt.Name then
  1347. passer = true
  1348. break
  1349. end
  1350. end
  1351. end
  1352. end
  1353.  
  1354. if passer == true then
  1355. if v.Character:FindFirstChild("HumanoidRootPart") then
  1356. if v.Character.HumanoidRootPart:FindFirstChild("ESP") then
  1357.  
  1358. v.Character.HumanoidRootPart.ESP.TextLabel.Text = v.Name.." Distance: "..math.floor(((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude))
  1359.  
  1360. hitting = false
  1361.  
  1362.  
  1363. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p, (v.Character.HumanoidRootPart.CFrame.p - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p).unit * 2000)
  1364. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
  1365. if part then
  1366. if part.Parent == v.Character then
  1367. hitting = true
  1368. end
  1369. end
  1370. if hitting == false then
  1371. elseif hitting == true then
  1372. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  1373. end
  1374.  
  1375. if hitting == false then
  1376. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.Head.CFrame.p, (v.Character.Head.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.CFrame.p).unit * 2000)
  1377. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
  1378. if part then
  1379. if part.Parent == v.Character then
  1380. hitting = true
  1381. end
  1382. end
  1383. if hitting == false then
  1384. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  1385. elseif hitting == true then
  1386. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  1387. end
  1388.  
  1389. if hitting == false then
  1390. elseif hitting == true then
  1391. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  1392. end
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404. if hitting == false then
  1405. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p, (v.Character.HumanoidRootPart.CFrame.p - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p).unit * 2000)
  1406. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
  1407. if part then
  1408. if part:IsA("BasePart") then
  1409.  
  1410. CurrentGun = nil
  1411. for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
  1412. if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
  1413. if v:IsA("Model") then
  1414. if v:FindFirstChild("Flame") then
  1415. CurrentGun = v
  1416. break
  1417. end
  1418. end
  1419. end
  1420. end
  1421.  
  1422. found = false
  1423.  
  1424. if found == false then
  1425. for i = 1,#Sniper do
  1426. if CurrentGun ~= nil then
  1427. if Sniper[i] == CurrentGun.Name then
  1428. found = true
  1429. Min = 2.75
  1430. Max = 3
  1431. break
  1432. end
  1433. end
  1434. end
  1435. end
  1436.  
  1437. if found == false then
  1438. for i = 1,#SpecialSniper do
  1439. if CurrentGun ~= nil then
  1440. if SpecialSniper[i] == CurrentGun.Name then
  1441. found = true
  1442. Min = 3.25
  1443. Max = 3.5
  1444. break
  1445. end
  1446. end
  1447. end
  1448. end
  1449.  
  1450. if found == false then
  1451. for i = 1,#WeakSniper do
  1452. if CurrentGun ~= nil then
  1453. if WeakSniper[i] == CurrentGun.Name then
  1454. found = true
  1455. Min = 2.75
  1456. Max = 3
  1457. break
  1458. end
  1459. end
  1460. end
  1461. end
  1462.  
  1463. if found == false then
  1464. for i = 1,#WeakSMG do
  1465. if CurrentGun ~= nil then
  1466. if WeakSMG[i] == CurrentGun.Name then
  1467. found = true
  1468. Min = 2.25
  1469. Max = 3
  1470. break
  1471. end
  1472. end
  1473. end
  1474. end
  1475.  
  1476. if found == false then
  1477. for i = 1,#SMG do
  1478. if CurrentGun ~= nil then
  1479. if SMG[i] == CurrentGun.Name then
  1480. found = true
  1481. Min = 2.5
  1482. Max = 3
  1483. break
  1484. end
  1485. end
  1486. end
  1487. end
  1488.  
  1489. if found == false then
  1490. for i = 1,#ShotGun do
  1491. if CurrentGun ~= nil then
  1492. if ShotGun[i] == CurrentGun.Name then
  1493. found = true
  1494. Min = 2.75
  1495. Max = 3
  1496. break
  1497. end
  1498. end
  1499. end
  1500. end
  1501.  
  1502. if found == false then
  1503. for i = 1,#LMG do
  1504. if CurrentGun ~= nil then
  1505. if LMG[i] == CurrentGun.Name then
  1506. found = true
  1507. Min = 2.5
  1508. Max = 3
  1509. break
  1510. end
  1511. end
  1512. end
  1513. end
  1514.  
  1515. if found == false then
  1516. for i = 1,#Other do
  1517. if CurrentGun ~= nil then
  1518. if Other[i] == CurrentGun.Name then
  1519. found = true
  1520. Min = 0
  1521. Max = 0
  1522. break
  1523. end
  1524. end
  1525. end
  1526. end
  1527.  
  1528. if found == false then
  1529. for i = 1,#Melee do
  1530. if CurrentGun ~= nil then
  1531. if Melee[i] == CurrentGun.Name then
  1532. found = true
  1533. Min = 0
  1534. Max = 0
  1535. break
  1536. end
  1537. end
  1538. end
  1539. end
  1540.  
  1541. if found == false then
  1542. Min = 0
  1543. Max = 0
  1544. end
  1545.  
  1546. if part.Parent.Name == "Map" then
  1547. if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  1548. hitting = true
  1549. parter = part
  1550. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
  1551. hitting = true
  1552. parter = part
  1553. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
  1554. hitting = true
  1555. parter = part
  1556. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
  1557. hitting = true
  1558. parter = part
  1559. elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
  1560. hitting = true
  1561. parter = part
  1562. elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
  1563. hitting = true
  1564. parter = part
  1565. elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
  1566. hitting = true
  1567. parter = part
  1568. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
  1569. hitting = true
  1570. parter = part
  1571. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  1572. hitting = true
  1573. parter = part
  1574. elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
  1575. hitting = true
  1576. parter = part
  1577. end
  1578. end
  1579. end
  1580. end
  1581. if hitting == true then
  1582. hitting = false
  1583. part = parter
  1584. list = {}
  1585. pos1 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
  1586. pos2 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
  1587. Reg = Region3.new(pos1, pos2)
  1588. TouchingParts = game.Workspace:FindPartsInRegion3(Reg)
  1589. o = 1
  1590. if TouchingParts ~= nil then
  1591. for i,v in pairs(TouchingParts) do
  1592. if v ~= parter then
  1593.  
  1594.  
  1595. part = v
  1596. if part.Parent.Name == "Map" then
  1597. if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  1598. hitting = true
  1599. parter = part
  1600. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
  1601. hitting = true
  1602. parter = part
  1603. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
  1604. hitting = true
  1605. parter = part
  1606. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
  1607. hitting = true
  1608. parter = part
  1609. elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
  1610. hitting = true
  1611. parter = part
  1612. elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
  1613. hitting = true
  1614. parter = part
  1615. elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
  1616. hitting = true
  1617. parter = part
  1618. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
  1619. hitting = true
  1620. parter = part
  1621. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  1622. hitting = true
  1623. parter = part
  1624. elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
  1625. hitting = true
  1626. parter = part
  1627. end
  1628. end
  1629.  
  1630.  
  1631. if hitting == true then
  1632. table.insert(list, o, v)
  1633. o = o + 1
  1634. end
  1635. end
  1636. end
  1637. end
  1638.  
  1639. hitting = false
  1640.  
  1641. part = parter
  1642.  
  1643. pos1 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
  1644. pos2 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
  1645.  
  1646. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p, (v.Character.HumanoidRootPart.CFrame.p - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p).unit * 2000)
  1647. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore, parter, unpack(list)}, false, true)
  1648. if part then
  1649. if part.Parent == v.Character then
  1650. hitting = true
  1651. end
  1652. end
  1653. if hitting == false then
  1654. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  1655. elseif hitting == true then
  1656. if ((parter.Position - v.Character.HumanoidRootPart.Position).magnitude) <= 40 then
  1657. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  1658. else
  1659. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  1660. end
  1661. end
  1662.  
  1663. elseif hitting == false then
  1664. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  1665. end
  1666. end
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677. if hitting == false then
  1678. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.Head.CFrame.p, (v.Character.Head.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.CFrame.p).unit * 2000)
  1679. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
  1680. if part then
  1681. if part:IsA("BasePart") then
  1682.  
  1683. CurrentGun = nil
  1684. for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
  1685. if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
  1686. if v:IsA("Model") then
  1687. if v:FindFirstChild("Flame") then
  1688. CurrentGun = v
  1689. break
  1690. end
  1691. end
  1692. end
  1693. end
  1694.  
  1695. found = false
  1696.  
  1697. if found == false then
  1698. for i = 1,#Sniper do
  1699. if CurrentGun ~= nil then
  1700. if Sniper[i] == CurrentGun.Name then
  1701. found = true
  1702. Min = 2.75
  1703. Max = 3
  1704. break
  1705. end
  1706. end
  1707. end
  1708. end
  1709.  
  1710. if found == false then
  1711. for i = 1,#SpecialSniper do
  1712. if CurrentGun ~= nil then
  1713. if SpecialSniper[i] == CurrentGun.Name then
  1714. found = true
  1715. Min = 3.25
  1716. Max = 3.5
  1717. break
  1718. end
  1719. end
  1720. end
  1721. end
  1722.  
  1723. if found == false then
  1724. for i = 1,#WeakSniper do
  1725. if CurrentGun ~= nil then
  1726. if WeakSniper[i] == CurrentGun.Name then
  1727. found = true
  1728. Min = 2.75
  1729. Max = 3
  1730. break
  1731. end
  1732. end
  1733. end
  1734. end
  1735.  
  1736. if found == false then
  1737. for i = 1,#WeakSMG do
  1738. if CurrentGun ~= nil then
  1739. if WeakSMG[i] == CurrentGun.Name then
  1740. found = true
  1741. Min = 2.25
  1742. Max = 3
  1743. break
  1744. end
  1745. end
  1746. end
  1747. end
  1748.  
  1749. if found == false then
  1750. for i = 1,#SMG do
  1751. if CurrentGun ~= nil then
  1752. if SMG[i] == CurrentGun.Name then
  1753. found = true
  1754. Min = 2.5
  1755. Max = 3
  1756. break
  1757. end
  1758. end
  1759. end
  1760. end
  1761.  
  1762. if found == false then
  1763. for i = 1,#ShotGun do
  1764. if CurrentGun ~= nil then
  1765. if ShotGun[i] == CurrentGun.Name then
  1766. found = true
  1767. Min = 2.75
  1768. Max = 3
  1769. break
  1770. end
  1771. end
  1772. end
  1773. end
  1774.  
  1775. if found == false then
  1776. for i = 1,#LMG do
  1777. if CurrentGun ~= nil then
  1778. if LMG[i] == CurrentGun.Name then
  1779. found = true
  1780. Min = 2.5
  1781. Max = 3
  1782. break
  1783. end
  1784. end
  1785. end
  1786. end
  1787.  
  1788. if found == false then
  1789. for i = 1,#Other do
  1790. if CurrentGun ~= nil then
  1791. if Other[i] == CurrentGun.Name then
  1792. found = true
  1793. Min = 0
  1794. Max = 0
  1795. break
  1796. end
  1797. end
  1798. end
  1799. end
  1800.  
  1801. if found == false then
  1802. for i = 1,#Melee do
  1803. if CurrentGun ~= nil then
  1804. if Melee[i] == CurrentGun.Name then
  1805. found = true
  1806. Min = 0
  1807. Max = 0
  1808. break
  1809. end
  1810. end
  1811. end
  1812. end
  1813.  
  1814. if found == false then
  1815. Min = 0
  1816. Max = 0
  1817. end
  1818.  
  1819. if part.Parent.Name == "Map" then
  1820. if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  1821. hitting = true
  1822. parter = part
  1823. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
  1824. hitting = true
  1825. parter = part
  1826. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
  1827. hitting = true
  1828. parter = part
  1829. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
  1830. hitting = true
  1831. parter = part
  1832. elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
  1833. hitting = true
  1834. parter = part
  1835. elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
  1836. hitting = true
  1837. parter = part
  1838. elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
  1839. hitting = true
  1840. parter = part
  1841. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
  1842. hitting = true
  1843. parter = part
  1844. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  1845. hitting = true
  1846. parter = part
  1847. elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
  1848. hitting = true
  1849. parter = part
  1850. end
  1851. end
  1852. end
  1853. end
  1854. if hitting == true then
  1855. hitting = false
  1856. part = parter
  1857. list = {}
  1858. pos1 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
  1859. pos2 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
  1860. Reg = Region3.new(pos1, pos2)
  1861. TouchingParts = game.Workspace:FindPartsInRegion3(Reg)
  1862. o = 1
  1863. if TouchingParts ~= nil then
  1864. for i,v in pairs(TouchingParts) do
  1865. if v ~= parter then
  1866.  
  1867.  
  1868. part = v
  1869. if part.Parent.Name == "Map" then
  1870. if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  1871. hitting = true
  1872. parter = part
  1873. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
  1874. hitting = true
  1875. parter = part
  1876. elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
  1877. hitting = true
  1878. parter = part
  1879. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
  1880. hitting = true
  1881. parter = part
  1882. elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
  1883. hitting = true
  1884. parter = part
  1885. elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
  1886. hitting = true
  1887. parter = part
  1888. elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
  1889. hitting = true
  1890. parter = part
  1891. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
  1892. hitting = true
  1893. parter = part
  1894. elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
  1895. hitting = true
  1896. parter = part
  1897. elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
  1898. hitting = true
  1899. parter = part
  1900. end
  1901. end
  1902.  
  1903.  
  1904. if hitting == true then
  1905. table.insert(list, o, v)
  1906. o = o + 1
  1907. end
  1908. end
  1909. end
  1910. end
  1911.  
  1912. hitting = false
  1913.  
  1914. part = parter
  1915.  
  1916. pos1 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
  1917. pos2 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
  1918.  
  1919. local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.Head.CFrame.p, (v.Character.Head.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.CFrame.p).unit * 2000)
  1920. local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore, parter, unpack(list)}, false, true)
  1921. if part then
  1922. if part.Parent == v.Character then
  1923. hitting = true
  1924. end
  1925. end
  1926. if hitting == false then
  1927. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  1928. elseif hitting == true then
  1929. if ((parter.Position - v.Character.HumanoidRootPart.Position).magnitude) <= 40 then
  1930. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  1931. else
  1932. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  1933. end
  1934. end
  1935.  
  1936. elseif hitting == false then
  1937. v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  1938. end
  1939. end
  1940. end
  1941.  
  1942.  
  1943.  
  1944. elseif pass == true then
  1945. local ESP = Instance.new("BillboardGui",v.Character.HumanoidRootPart)
  1946. ESP.Name = "ESP"
  1947. ESP.Size = UDim2.new(6, 0, 8, 0)
  1948. ESP.StudsOffset = Vector3.new(0, 0.75, 0)
  1949. ESP.AlwaysOnTop = true
  1950. local Frame = Instance.new("Frame",ESP)
  1951. Frame.ZIndex = 1000
  1952. Frame.Size = UDim2.new(0.6, 0, 0.8, 0)
  1953. Frame.Position = UDim2.new(0.2, 0, 0.3, 0)
  1954. Frame.BorderSizePixel = 3
  1955. Frame.BackgroundTransparency = 0.3
  1956. Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  1957. Label = Instance.new("TextLabel", ESP)
  1958. Label.Position = UDim2.new(0, 0, -0.1, 0)
  1959. Label.Size = UDim2.new(1, 0, 0.3, 0)
  1960. Label.Font = "SourceSansLight"
  1961. Label.TextColor3 = Color3.new(1,1,1)
  1962. Label.TextStrokeColor3 = Color3.new(0,0,0)
  1963. Label.TextStrokeTransparency = 0
  1964. Label.BackgroundColor3 = Color3.new(1, 1, 1)
  1965. Label.TextScaled = true
  1966. Label.Text = v.Name.." Distance: "..math.floor(((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude))
  1967. Label.BackgroundTransparency = 1
  1968. end
  1969. end
  1970. end
  1971. end
  1972. end
  1973. end
  1974. end
  1975. end
  1976. end)
  1977.  
  1978. UNIQUE BUSINESS CARDS BY MOO. START WITH A TEMPLATE OR DESIGN YOUR OWN.
  1979.  
  1980. create new paste / dealsnew! / api / trends / syntax languages / faq / tools / privacy / cookies / contact / dmca / scraping / go
  1981. Site design & logo © 2017 Pastebin; user contributions (pastes) licensed under cc by-sa 3.0 -- Dedicated Server Hosting by Steadfast
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement