Advertisement
shjshjdahsdhjkdajhds

Untitled

Jan 5th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.79 KB | None | 0 0
  1. local TweenService = game:GetService("TweenService")
  2. local Insert = table.insert
  3. local V2 = Vector2
  4. local V3 = Vector3
  5. local CF = CFrame
  6. local UD2 = UDim2
  7. local C3 = Color3
  8. local sin = math.sin
  9. local str_match, str_lower = string.match, string.lower
  10. local floor, abs, huge, deg, atan2 = math.floor, math.abs, math.huge, math.deg, math.atan2
  11. local nV = V3.new()
  12.  
  13. Aim = {
  14. Key = Enum.UserInputType.MouseButton2,
  15. MouseBased = true,
  16. AimPart = "Head",
  17. SuppressShotsWhenNotLockedOn = true,
  18. AimLock = true,
  19. TargetMode = "Fov",
  20. TargetDebounce = 0,
  21. Toggle = false,
  22. VelocityCompensation = 0.8,
  23. DropCompensation = 0.9,
  24. X_Sensitivity = 0.3,
  25. Y_Sensitivity = 0.3,
  26. Wallbang = true,
  27. Toggled = false,
  28. FovPx = 300,
  29. -- Internal, do not touch
  30. KeyHeld = false,
  31. AimingIn = false
  32. }
  33.  
  34. Wallbang = {
  35. Enabled = true,
  36. MaxWalls = 5,
  37. MaxStuds = 2.8,
  38. MaxDist = 500,
  39. }
  40.  
  41. Esp = {
  42. ShowVisibleOnly = false,
  43. }
  44.  
  45. TriggerBot = {
  46. Enabled = false,
  47. MustBeScopedIn = false,
  48. -- 1/4.5 is average human reaction time.
  49. Delay = 0.5,
  50. MaxPxOffset = 2
  51. }
  52.  
  53. Chams = {
  54. Enabled = true,
  55. ShowVisibleOnly = false,
  56. Transparency = 1/3,
  57. WallbangColor = C3.new(1,1,0),
  58. VisibleColor = C3.new(0,1,0),
  59. HiddenColor = C3.new(1,0,0)
  60. }
  61.  
  62. Box = {
  63. Enabled = true,
  64. Thickness = 1,
  65. MaxDistance = 500,
  66. FadeWithMaxDistance = false,
  67. ShowVisibleOnly = false,
  68. WallbangColor = C3.new(1,1,0),
  69. VisibleColor = C3.new(0,1,0),
  70. HiddenColor = C3.new(1,1,1)
  71. }
  72.  
  73. Tracers = {
  74. Enabled = true,
  75. Thickness = 2,
  76. MaxDistance = 1000,
  77. FadeWithMaxDistance = true,
  78. HighlightVisible = false,
  79. HighlightColor = C3.new(0,1,0),
  80. Origin = "Center",
  81. }
  82.  
  83. NameTag = {
  84. Enabled = true
  85. }
  86.  
  87. Wallhack = {
  88. Enabled = true,
  89. PerformanceMode = false, -- Slows updating slightly, but increases performance.
  90. }
  91.  
  92. Gun = {
  93. Esp = true,
  94. MaxDistance = 50, -- for esp.
  95. BulletSpeed = 2650,
  96. }
  97.  
  98. Miscellanous = {
  99. HideArms = false,
  100. Fullbright = false,
  101. RemoveSky = true
  102. }
  103.  
  104. local UseDistance = str_lower(Aim.TargetMode) == "distance"
  105.  
  106. local StoredPlayers
  107. local StoredCharacters
  108.  
  109. local Players = game:GetService("Players")
  110. local RunService = game:GetService("RunService")
  111. local InputService = game:GetService("UserInputService")
  112. local Lighting = game:GetService("Lighting")
  113. local PlayerList = {
  114. GetPlayers = function(self, EnemiesOnly)
  115. local PlayersVar = {}
  116.  
  117. for Key, Value in next, self do
  118. if type(Value) ~= "function" and Key ~= Players.LocalPlayer.Name then
  119. if EnemiesOnly and Client.Player.TeamColor ~= self[Key].Player.TeamColor then
  120. Insert(PlayersVar, Value)
  121. else
  122. Insert(PlayersVar, Value)
  123. end
  124. end
  125. end
  126.  
  127. return PlayersVar
  128. end,
  129. GetCharacters = function(self, EnemiesOnly)
  130. local Characters = {}
  131.  
  132. for _, Player in next, StoredPlayers do
  133. if (EnemiesOnly and Player.IsEnemy) or not EnemiesOnly then
  134. local Character = Player.Character
  135. if Character then
  136. Insert(Characters, Player.Character)
  137. end
  138. end
  139. end
  140. return Characters
  141. end
  142. }
  143.  
  144. local PlayerGui = Players.LocalPlayer:WaitForChild("PlayerGui")
  145. local CoreGui = game.CoreGui
  146. local Camera = workspace.CurrentCamera
  147. local Mouse = Players.LocalPlayer:GetMouse()
  148. local SpawnPoint = workspace.Lobby.Spawn1
  149.  
  150. local WindowFocused = false
  151. local Aiming = false
  152. local AimTarget = nil
  153.  
  154. local CurrentDebounce = Aim.TargetDebounce
  155. local CalculateTrajectory = loadstring(game:HttpGet("https://pastebin.com/raw/2JQ2Hbwe", true))()
  156.  
  157. if not (Players.LocalPlayer:FindFirstChild("avexusdeviscool")) then
  158. local val = Instance.new("BoolValue", Players.LocalPlayer)
  159. val.Name = "avexusdeviscool"
  160. val.Value = true
  161. end
  162.  
  163. local BaseLine = Instance.new("Frame")
  164. BaseLine.Name = "BaseLine"
  165. BaseLine.BorderSizePixel = 0
  166. BaseLine.BorderColor3 = C3.new()
  167.  
  168. local function RandomCharGenerator(Length)
  169. local tb = {}
  170. for i = 1, Length do
  171. tb[i] = string.char(math.random(0, 100))
  172. end
  173. return table.concat(tb)
  174. end
  175.  
  176. local Ace = Instance.new("ScreenGui", CoreGui)
  177. Ace.Name = RandomCharGenerator(20)
  178. print(Ace.Name)
  179.  
  180. local VPAce = Ace:Clone()
  181. VPAce.IgnoreGuiInset = true
  182. VPAce.Parent = CoreGui
  183.  
  184. local Notice = Instance.new("TextLabel")
  185. Notice.Text = "NOTICE:\nThis script was written by AvexusDev.\nAnyone else who claims credit is lying and attempting to steal my work.\n\nIf you'd like to donate or contact me,\nopen the developer console with F9.\nThere are no hotkeys yet, you'll have to change the values in the script itself.\n\nThanks for using my script, and happy fragging!\n\nThis closes automatically in 10 seconds."
  186. Notice.BackgroundTransparency = 1/4
  187. Notice.BackgroundColor3 = C3.new()
  188. Notice.TextColor3 = C3.new(1, 1, 1)
  189. Notice.Size = UD2.new(1, 0, 1, 0)
  190. Notice.Font = Enum.Font.Gotham
  191. Notice.TextSize = 32
  192. Notice.ZIndex = huge
  193. Notice.Parent = Ace
  194.  
  195. delay(10, function() Notice:Destroy() end)
  196.  
  197. local StartUp_Sound = Instance.new("Sound", Camera)
  198. StartUp_Sound.SoundId = "rbxassetid://2668759868"
  199.  
  200. local LockOn_Sound = Instance.new("Sound", Camera)
  201. LockOn_Sound.SoundId = "rbxassetid://538769304"
  202. LockOn_Sound.Volume = 1/4
  203.  
  204. local Weapons = {
  205. ["Assault Rifle"] = {"AK12", "AN-94", "AS VAL", "SCAR-L", "AUG A1", "M16A4", "G36", "M16A3",
  206. "AUG A2", "FAMAS", "AK47", "AUG A3", "L85A2", "HK416", "AK74", "AKM", "AK103", "M231"},
  207. ["Battle Rifle"] = {"BEOWULF ECR", "SCAR-H", "AK12BR", "G3", "AG-3", "HENRY 45-70", "FAL 50.00"},
  208. ["Carbine"] = {"M4A1", "G36C", "M4", "L22", "SCAR PDW", "AKU12", "GROZA-1", "AK12C", "HONEY BADGER",
  209. "SR-3M", "GROZA-4", "MC51SD", "FAL 50.63 PARA", "1858 CARBINE", "AK105"},
  210. ["Shotgun"] = {"KSG 12", "REMINGTON 870", "DBV12", "KS-23M", "SAIGA-12", "STEVENS DB", "AA-12", "SPAS-12"},
  211. ["PDW"] = {"MP5K", "UMP45", "MP7", "MAC10", "P90", "MP5", "COLT SMG 635", "L2A3", "MP5SD", "MP10", "M3A1",
  212. "MP5/10", "AUG A3 PARA", "PPSH-41", "FAL PARA SHORTY", "KRISS VECTOR", "MP40"},
  213. ["DMR"] = {"MK11", "SKS", "VSS VINTOREZ", "MSG90", "BEOWULF TCR", "SA58 SPR", "SCAR SSR"},
  214. ["LMG"] = {"COLT LMG", "M60", "AUG HBAR", "MG36", "RPK12", "L86 LSW", "RPK", "HK21", "SCAR HAMR", "RPK74",
  215. "MG3KWS"},
  216. ["Sniper Rifle"] = {"INTERVENTION", "REMINGTON 700", "DRAGUNOV SVU", "AWS", "BFG 50", "L115A3", "MOSIN NAGANT",
  217. "DRAGUNOV SVDS", "HECATE II", "STEYR SCOUT"},
  218.  
  219. GetWeapons = function(self)
  220. local tables = {}
  221. for avexisarealgamer, donttrytostealmyscriptpls in next, self do
  222. if typeof(donttrytostealmyscriptpls) == "table" then
  223. Insert(tables, {avexisarealgamer, donttrytostealmyscriptpls})
  224. end
  225. end
  226. return tables
  227. end
  228. }
  229.  
  230. local whydidimakeafunction = Weapons:GetWeapons()
  231. local function Rainbow() return C3.fromHSV(sin((tick() / 3) % 1), 0.5, 1) end
  232.  
  233. local Folders = {
  234. ["Chams"] = Instance.new("Folder"),
  235. ["Tracers"] = Instance.new("Folder"),
  236. ["Boxes"] = Instance.new("Folder")
  237. }
  238.  
  239. for Name, Folder in next, Folders do
  240. Folder.Name = Name
  241. Folder.Parent = Ace
  242. end
  243.  
  244. Folders.Rods = Instance.new("Folder", workspace)
  245. Folders.Rods.Name = "Rods"
  246.  
  247. Folders.Boxes.Parent = workspace
  248.  
  249. local DeadBody = workspace:WaitForChild("DeadBody")
  250. local GunDrop = workspace:WaitForChild("Ignore").GunDrop
  251.  
  252. local SampleInfo = Instance.new("TextLabel")
  253. SampleInfo.BackgroundTransparency = 1
  254. SampleInfo.Size = UD2.new(1, 0, 1/6, 0)
  255. SampleInfo.Font = Enum.Font.Gotham
  256. SampleInfo.TextScaled = true
  257. SampleInfo.TextStrokeTransparency = 3/4
  258. SampleInfo.TextColor3 = C3.new(1,1,1)
  259. SampleInfo.TextTransparency = 0
  260.  
  261. local TopRight = SampleInfo:Clone()
  262. TopRight.TextXAlignment = Enum.TextXAlignment.Right
  263. TopRight.TextYAlignment = Enum.TextYAlignment.Top
  264. TopRight.Text = "GameSense 2.0 by AvexusDev\nLast updated 10/06/19"
  265. TopRight.TextScaled = false
  266. TopRight.TextSize = 16
  267. TopRight.Position = UD2.new(0, -8, 0, 8)
  268. TopRight.Parent = Ace
  269.  
  270. local FovCircle = Instance.new("ImageLabel", Ace)
  271. FovCircle.AnchorPoint = V2.new(0.5, 0.5)
  272. FovCircle.BackgroundTransparency = 1
  273. FovCircle.Position = UD2.new(0.5, 0, 0.5, 0)
  274. FovCircle.Size = UD2.new(0, Aim.FovPx * 2, 0, Aim.FovPx * 2)
  275. FovCircle.Image = "rbxassetid://3260808247"
  276. FovCircle.ImageTransparency = 0.8
  277.  
  278. local AimPoint = Instance.new("Frame", Ace)
  279. AimPoint.Name = "AimPoint"
  280. AimPoint.BackgroundColor3 = C3.new(1,1,1)
  281. AimPoint.Size = UD2.new(0, 4, 0, 4)
  282. AimPoint.AnchorPoint = V2.new(0.5, 0.5)
  283.  
  284. local PercentMatch = Instance.new("TextLabel", AimPoint)
  285. PercentMatch.Name = "PercentMatch"
  286. PercentMatch.AnchorPoint = V2.new(0.5, 1)
  287. PercentMatch.TextColor3 = C3.new(1,1,1)
  288. PercentMatch.Font = Enum.Font.GothamBlack
  289. PercentMatch.Text = "undefined"
  290. PercentMatch.TextSize = 10
  291. PercentMatch.TextStrokeTransparency = 0.75
  292. PercentMatch.BackgroundTransparency = 1
  293. PercentMatch.Size = UD2.new(0, 20, 0, 10)
  294. PercentMatch.Position = UD2.new(0.5, 0, -1, 0)
  295.  
  296. local ViewportFrame = Instance.new("ViewportFrame", VPAce)
  297. ViewportFrame.Size = UDim2.new(1, 0, 1, 0)
  298. ViewportFrame.CurrentCamera = workspace.CurrentCamera
  299. ViewportFrame.BackgroundTransparency = 1
  300. ViewportFrame.ImageTransparency = 1/4
  301.  
  302. local function Fullbright()
  303. Lighting.GlobalShadows = false
  304. Lighting.Brightness = 0.5
  305. Lighting.OutdoorAmbient = C3.new(1, 1, 1)
  306. Lighting.Ambient = C3.new(1, 1, 1)
  307.  
  308. Lighting.MapLighting:WaitForChild("Ambient").Value = C3.new(1, 1, 1)
  309. Lighting.MapLighting:WaitForChild("OutdoorAmbient").Value = C3.new(1, 1, 1)
  310.  
  311. -- You don't need light sources if you have fullbright on.
  312. for _, v in next, workspace:GetDescendants() do
  313. if v:IsA("Light") then
  314. v:Destroy()
  315. end
  316. end
  317. end
  318.  
  319. if Miscellanous.Fullbright then
  320. Fullbright()
  321. end
  322.  
  323. if Miscellanous.RemoveSky then
  324. Lighting.ClockTime = 0
  325. Instance.new("Sky", Lighting).CelestialBodiesShown = false
  326. end
  327.  
  328. if Miscellanous.HideArms then
  329. workspace.CurrentCamera.ChildAdded:Connect(function(Child)
  330. if str_match(Child.Name, "Arm") then
  331. Child:Destroy()
  332. end
  333. end)
  334. end
  335.  
  336. local MouseClick = function()
  337. if not RunService:IsStudio() then
  338. mouse1press()
  339. RunService.RenderStepped:Wait()
  340. mouse1release()
  341. else
  342. warn("Cannot force a Mouse Click in Studio.")
  343. end
  344. end
  345.  
  346. local ShowUIElement = function(Element, Enabled)
  347. Element.Visible = Enabled
  348. for _, v in next, Element:GetDescendants() do
  349. v.Visible = Enabled
  350. end
  351. end
  352.  
  353. local ClearTable = function(Table, IsObject)
  354. for k, v in next, Table do
  355. if IsObject then
  356. v:Destroy()
  357. end
  358. Table[k] = nil
  359. end
  360. end
  361.  
  362. local FindNumbers = function(String)
  363. String = String.gsub(string, ",", "")
  364. return tonumber(String)
  365. end
  366.  
  367. SetUp = function(Player)
  368. local Data = {}
  369. local Rod
  370.  
  371. Data.Name = Player.Name
  372. Data.Player = Player
  373. Data.Character = Player.Character or Player.CharacterAdded:Wait()
  374. Data.IsEnemy = Player.TeamColor ~= Players.LocalPlayer.TeamColor
  375. Data.Limbs = {}
  376. Data.Chams = {}
  377. Data.ObscuringParts = {}
  378. Data.Tracer = nil
  379. Data.BoundingBox = nil
  380. Data.Wallhack = nil
  381. Data.Visible = true
  382. Data.OnScreen = false
  383. Data.Wallbangable = false
  384. Data.Spawned = false
  385. Data.Distance = 0
  386.  
  387. for _, Limb in next, Data.Character:GetChildren() do
  388. if Limb:IsA("BasePart") then
  389. Data.Limbs[Limb.Name] = Limb
  390. end
  391. end
  392.  
  393. Data.GetGun = function(self)
  394. if Data.Spawned and Data.Character then
  395. local Gun
  396. for _, t in next, whydidimakeafunction do
  397. for i, _ in next, t[2] do
  398. local gun = t[2][i]
  399. local model = Data.Character:FindFirstChildOfClass("Model")
  400. if model then
  401. Gun = (model.Name == gun and gun) or nil
  402. end
  403. if (Gun ~= nil) then
  404. return Gun
  405. end
  406. end
  407. end
  408. end
  409. end
  410.  
  411. Data.DoChams = function(Enabled)
  412. ClearTable(Data.Chams, true)
  413.  
  414. if Enabled then
  415. local Visible = Data:IsVisible()
  416. for _, Limb in next, Data.Limbs do
  417. if Limb.Name ~= "HumanoidRootPart" then
  418. local Cham = Instance.new("BoxHandleAdornment")
  419. local IsHead = Limb.Name == "Head"
  420. Cham.Name = Data.Name.." "..Limb.Name
  421. Cham.Adornee = Limb
  422. Cham.AlwaysOnTop = true
  423. Cham.Transparency = Chams.Transparency
  424. Cham.Size = V3.new(IsHead and Limb.Size.Z or Limb.Size.X, Limb.Size.Y, Limb.Size.Z)
  425. Cham.Color3 = Visible and Chams.VisibleColor or Chams.HiddenColor
  426. Cham.ZIndex = 1
  427. Insert(Data.Chams, Cham)
  428. Cham.Parent = Folders.Chams
  429. end
  430. end
  431. else
  432. for _, Cham in next, Data.Chams do
  433. Cham:Destroy()
  434. end
  435. for _, Cham in next, Folders.Chams:GetChildren() do
  436. if str_match(Cham.Name, Data.Name) then
  437. Cham:Destroy()
  438. end
  439. end
  440. end
  441. end
  442.  
  443. Data.DoNameTag = function(Enabled)
  444. if Enabled then
  445. local BillboardGui = Instance.new("BillboardGui")
  446. BillboardGui.Name = "NameTag"
  447. BillboardGui.ExtentsOffset = V3.new(0, 1.25, 0)
  448. BillboardGui.LightInfluence = 0
  449. BillboardGui.SizeOffset = V2.new(0, 0.5)
  450. BillboardGui.Size = UD2.new(5, 50, 2, 50)
  451. BillboardGui.AlwaysOnTop = true
  452.  
  453. local ListLayout = Instance.new("UIListLayout", BillboardGui)
  454. ListLayout.FillDirection = Enum.FillDirection.Vertical
  455. ListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  456. ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  457. ListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
  458.  
  459. local Arrow = SampleInfo:Clone()
  460. Arrow.LayoutOrder = 100
  461. Arrow.Name = "Arrow"
  462. Arrow.Text = " ▼"
  463. Arrow.Parent = BillboardGui
  464.  
  465. local Distance = SampleInfo:Clone()
  466. Distance.LayoutOrder = 50
  467. Distance.Name = "Distance"
  468. Distance.Text = "undefined"
  469. Distance.Parent = BillboardGui
  470.  
  471. --[[
  472. local EquippedGun = SampleInfo:Clone()
  473. EquippedGun.LayoutOrder = 25
  474. EquippedGun.Name = "EquippedGun"
  475. EquippedGun.Text = "..?"
  476.  
  477. spawn(function()
  478. local Gun
  479. while Data and (not Gun) do
  480. Gun = Data:GetGun()
  481. wait(0.5)
  482. end
  483. EquippedGun.Text = Gun
  484. end)
  485.  
  486. EquippedGun.Parent = BillboardGui
  487. ]]
  488.  
  489. local NameTag = SampleInfo:Clone()
  490. NameTag.LayoutOrder = 0
  491. NameTag.Name = "NameTag"
  492. NameTag.Text = Data.Name
  493. NameTag.Font = Enum.Font.GothamBold
  494. NameTag.TextStrokeTransparency = 2/3
  495. NameTag.Parent = BillboardGui
  496.  
  497. Data.NameTag = BillboardGui
  498. Data.NameTag.Parent = Data.Character
  499. else
  500. if Data.NameTag then
  501. Data.NameTag:Destroy()
  502. elseif StoredCharacters ~= nil then
  503. for n, v in next, StoredCharacters do
  504. if n == Data.Name and v:FindFirstChild("NameTag") then
  505. v:Destroy()
  506. end
  507. end
  508. end
  509. end
  510. end
  511.  
  512. Data.DoBox = function(Enabled)
  513. local AdorneePart = Data.Limbs["Torso"]
  514.  
  515. if Enabled and AdorneePart then
  516. local Thiccness = Box.Thickness
  517.  
  518. local BillboardGui = Instance.new("BillboardGui")
  519. BillboardGui.Name = Data.Name
  520. BillboardGui.Adornee = AdorneePart
  521. BillboardGui.AlwaysOnTop = true
  522. BillboardGui.Size = UD2.new(5.5, 0, 5.5, 0)
  523.  
  524. local Frame = Instance.new("Frame", BillboardGui)
  525. Frame.BackgroundTransparency = 0.75
  526. Frame.Size = UD2.new(1, 0, 1, 0)
  527.  
  528. local Top = Instance.new("Frame", Frame)
  529. Top.Name = "Top"
  530. Top.Size = UD2.new(1, 0, 0, Thiccness)
  531. Top.BackgroundColor3 = C3.new(1,1,1)
  532. Top.BorderSizePixel = 0
  533.  
  534. local Bottom = Top:Clone()
  535. Bottom.Name = "Bottom"
  536. Bottom.AnchorPoint = V2.new(0, 1)
  537. Bottom.Position = UD2.new(0, 0, 1, 0)
  538. Bottom.Parent = Frame
  539.  
  540. local Left = Top:Clone()
  541. Left.Name = "Left"
  542. Left.Size = UD2.new(0, Thiccness, 1, 0)
  543. Left.Parent = Frame
  544.  
  545. local Right = Left:Clone()
  546. Right.Name = "Right"
  547. Right.AnchorPoint = V2.new(1, 0)
  548. Right.Position = UD2.new(1, 0, 0, 0)
  549. Right.Parent = Frame
  550.  
  551. BillboardGui.Parent = Folders.Boxes
  552. Data.BoundingBox = BillboardGui
  553. elseif not Enabled then
  554. if Data.BoundingBox then
  555. Data.BoundingBox:Destroy()
  556. else
  557. for _, v in next, Folders.Boxes:GetChildren() do
  558. if str_match(v.Name, Data.Name) then
  559. v:Destroy()
  560. end
  561. end
  562. end
  563. end
  564. end
  565.  
  566. Data.IsVisible = function(Simple, DisregardOnScreen)
  567. local Visible = false
  568. local ScreenPoint
  569. if Data and Data.Spawned and Data.Limbs.Head then
  570. local ObscuringParts = Data.ObscuringParts
  571. local ScreenPoint, OnScreen = Camera:WorldToScreenPoint(Data.Limbs.Head.Position)
  572. Data.OnScreen = OnScreen
  573.  
  574. if OnScreen or DisregardOnScreen then
  575. if Simple then
  576. Visible = #ObscuringParts < 1
  577. else
  578. Visible = true
  579. for _, Part in next, ObscuringParts do
  580. if Part.Transparency == 0 then
  581. Visible = false
  582. end
  583. end
  584. end
  585. end
  586. end
  587. return Visible, ScreenPoint
  588. end
  589.  
  590. Data.IsWallbangable = function()
  591. local Wallbangable = false
  592. local AimPart = Data.Limbs[Aim.AimPart]
  593. local ObscuringParts = Data.ObscuringParts
  594.  
  595. if AimPart then
  596. local Studsbanged = V3.new(0, 0, 0)
  597. local Wallsbanged = #ObscuringParts
  598.  
  599. if Wallsbanged < Wallbang.MaxWalls then
  600. for _, Part in next, ObscuringParts do
  601. if (Part.Transparency == 0) then
  602. local Size = Part.Size
  603. Studsbanged = V3.new(Studsbanged.X + Size.X, Studsbanged.Y + Size.Y, Studsbanged.Y + Size.Z)
  604. end
  605. end
  606. if (Studsbanged.X <= Wallbang.MaxStuds) or (Studsbanged.Y <= Wallbang.MaxStuds) or (Studsbanged.X <= Wallbang.MaxStuds) then
  607. Wallbangable = true
  608. end
  609. end
  610. end
  611. return Wallbangable
  612. end
  613.  
  614. Data.SetColor = function(Color)
  615. if Chams.Enabled then
  616. for _, Cham in next, Data.Chams do
  617. if Cham:IsA("HandleAdornment") then
  618. local ChamHATI = TweenInfo.new(1/15, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
  619. local ChamHAT = TweenService:Create(Cham, ChamHATI, {["Color3"] = Color})
  620. ChamHAT:Play()
  621. end
  622. end
  623. end
  624. --[[
  625. if BoundingBox then
  626. for _, BoxPart in next, BoundingBox:GetChildren() do
  627. if BoxPart:IsA("GuiObject") then
  628. BoxPart.BackgroundColor3 = Color
  629. end
  630. end
  631. end
  632. ]]
  633. end
  634.  
  635. Data.GetDistance = function()
  636. local Rod = Folders.Rods:FindFirstChild(Player.Name)
  637. return Rod and Rod.CurrentDistance or 0
  638. end
  639.  
  640. Data.RemoveAllEsp = function()
  641. Data.DoBox(false)
  642. Data.DoChams(false)
  643. Data.DoNameTag(false)
  644.  
  645. if Data.Tracer then
  646. Data.Tracer:Destroy()
  647. Data.Tracer = nil
  648. end
  649.  
  650. if Data.Wallhack then
  651. Data.Wallhack:Destroy()
  652. Data.Wallhack = nil
  653. end
  654. end
  655.  
  656. Player.CharacterAdded:Connect(function()
  657. Data = nil
  658. PlayerList[Player.Name] = SetUp(Player)
  659. end)
  660.  
  661. spawn(function()
  662. while Data do
  663. if Data.Spawned then
  664. local Points = {Camera.CFrame.Position, Data.Limbs.Head.Position}
  665. local Ignore = {Camera, Client.Character, Data.Character}
  666. Data.ObscuringParts = Camera:GetPartsObscuringTarget(Points, Ignore)
  667. end
  668. wait()
  669. end
  670. end)
  671.  
  672. Player:GetPropertyChangedSignal("Team"):Connect(function()
  673. Data.IsEnemy = Player.TeamColor ~= Players.LocalPlayer.TeamColor
  674. end)
  675.  
  676. -- warn("Set up", Data.Name)
  677. Data.RootPart = Data.Limbs.HumanoidRootPart
  678. Data:RemoveAllEsp()
  679. return Data
  680. end
  681.  
  682. local DrawTracerLine = function(PlayerName, DrawOrigin, EndPoint, Color, Thickness, Transparency)
  683. if PlayerList[PlayerName] ~= nil then
  684. local Displacement = (EndPoint - DrawOrigin)
  685. local Line = Folders.Tracers:FindFirstChild(PlayerName) or BaseLine:Clone()
  686. Thickness = Thickness or Tracers.Thickness
  687.  
  688. Line.Name = PlayerName
  689. Line.BackgroundColor3 = Color
  690. Line.Size = UD2.new(0, Displacement.Magnitude, 0, Thickness)
  691. Line.Rotation = deg(atan2(Displacement.Y, Displacement.X))
  692. Line.AnchorPoint = V2.new(0.5, 0.5)
  693. Line.BackgroundTransparency = Transparency
  694. Line.Position = UD2.new(
  695. 0, ((DrawOrigin.X + (Displacement.X / 2))),
  696. 0, ((DrawOrigin.Y + (Displacement.Y / 2)) - 1)
  697. )
  698. PlayerList[PlayerName].Tracer = Line
  699. Line.Parent = Folders.Tracers
  700. end
  701. end
  702.  
  703. local MouseMove = function(X, Y)
  704. if not RunService:IsStudio() then
  705. mousemoverel((X - Mouse.X) * Aim.X_Sensitivity, (Y - Mouse.Y) * Aim.Y_Sensitivity)
  706. else
  707. warn("("..X..", "..Y..")", "Cannot move mouse in Studio.")
  708. end
  709. end
  710.  
  711. local AimRoutine = function(Position)
  712. MouseMove(Position.X, Position.Y)
  713. end
  714.  
  715. Client = SetUp(Players.LocalPlayer)
  716. PlayerList[Client.Name] = Client
  717.  
  718. warn("GameSense has initialized.\nWelcome, "..Client.Player.Name.."!\n", "If you like this cheat, I'd really appreciate it if you donated! paypal.me/gamesensedonation :)\n\nHere's my discord: Avexus#1866")
  719. StartUp_Sound:Play()
  720.  
  721. for _, Player in next, Players:GetPlayers() do
  722. if Player ~= Players.LocalPlayer then
  723. PlayerList[Player.Name] = SetUp(Player)
  724. end
  725. end
  726.  
  727. Players.PlayerAdded:Connect(
  728. function(Player)
  729. PlayerList[Player.Name] = SetUp(Player)
  730. end)
  731.  
  732. Players.PlayerRemoving:Connect(
  733. function(Player)
  734. PlayerList[Player.Name]:RemoveAllEsp()
  735. PlayerList[Player.Name] = nil
  736. end)
  737.  
  738. InputService.WindowFocused:Connect(function()
  739. WindowFocused = true
  740. end)
  741.  
  742. InputService.WindowFocusReleased:Connect(function()
  743. WindowFocused = false
  744. end)
  745.  
  746. local Steps = 0
  747. local StoredDirection = 0
  748. local PercentMatchNum = 0
  749.  
  750. local MouseFreed = Enum.MouseBehavior.Default
  751. local MouseLocked = Enum.MouseBehavior.LockCurrentPosition
  752.  
  753. local function MainFunction()
  754. if WindowFocused then
  755. Steps = Steps + 1
  756. local Rainbow = Rainbow()
  757. local Min = huge
  758. local OnDebounce = CurrentDebounce > 0
  759. local NumVisPlrs = 0
  760.  
  761. local AimPart = AimTarget and AimTarget.Limbs[Aim.AimPart]
  762.  
  763. AimTarget = (Aim.AimLock) and AimTarget or nil
  764.  
  765. for _, Player in next, StoredPlayers do
  766. if Player.IsEnemy then
  767. local Character = Player.Character
  768. local FakeCharacter = ViewportFrame:FindFirstChild(Character.Name)
  769. local IsVisible = Player:IsVisible()
  770. local IsWallbangable = Wallbang.Enabled and (Player.Distance < Wallbang.MaxDist) and (Player:IsWallbangable())
  771. local Head = Player.Limbs["Head"]
  772. local Part = Player.Limbs[Aim.AimPart]
  773. local HeadScreenPos = Head and Camera:WorldToScreenPoint(Head.Position + V3.new(0, -4.5, 0))
  774. Player.Distance = huge
  775.  
  776. if (Player ~= Client and Client.RootPart and Player.RootPart) then
  777. Player.Distance = (Players.LocalPlayer.Character.HumanoidRootPart.Position - Player.RootPart.Position).Magnitude
  778. end
  779.  
  780. -- Universal ESP Handler
  781. if (Steps % 20) == 0 then
  782. if (not Player.Spawned) and Player.RootPart and (SpawnPoint.Position - Player.RootPart.Position).Magnitude > 50 then
  783. Player.Spawned = true
  784.  
  785. if Player ~= Client and Player.IsEnemy then
  786. local EspVisibleOnly = Esp.ShowVisibleOnly and Player.Visible
  787. local ChamsVisibleOnly = Chams.ShowVisibleOnly and Player.Visible
  788. local BoxVisibleOnly = Box.ShowVisibleOnly and Player.Visible
  789. if Chams.Enabled then
  790. if ChamsVisibleOnly or not Chams.ShowVisibleOnly then
  791. Player.DoChams(true)
  792. end
  793. end
  794. if Box.Enabled then
  795. if BoxVisibleOnly or not Box.ShowVisibleOnly then
  796. Player.DoBox(true)
  797. end
  798. end
  799. if NameTag.Enabled then
  800. Player.DoNameTag(true)
  801. end
  802. elseif Player == Client then
  803. Fullbright()
  804. end
  805. end
  806. if Player.Spawned then
  807. if Player.NameTag:FindFirstChild("Distance") then
  808. Player.NameTag.Distance.Text = tostring(floor(Player.Distance)).."s"
  809. end
  810.  
  811. if (SpawnPoint.Position - Player.RootPart.Position).Magnitude < 100 then
  812. Player.Spawned = false
  813. Player:RemoveAllEsp()
  814. end
  815. end
  816. end
  817.  
  818. -- Tracers
  819. if (Player.Spawned and Tracers.Enabled and HeadScreenPos and HeadScreenPos.Z > 0) then
  820. DrawTracerLine(
  821. Player.Name,
  822. V2.new(Camera.ViewportSize.X * 0.5, Camera.ViewportSize.Y),
  823. V2.new(HeadScreenPos.X, HeadScreenPos.Y),
  824. C3.new(1,1,1),
  825. Tracers.Thickness,
  826. Tracers.FadeWithMaxDistance and Player.Distance / Tracers.MaxDistance or 0
  827. )
  828. elseif Player.Tracer then
  829. Player.Tracer:Destroy()
  830. end
  831.  
  832. -- Chams
  833. if (not Player.Visible and IsVisible) then
  834. Player.Visible = true
  835. Player.SetColor(Chams.VisibleColor)
  836. if Chams.Enabled and Chams.ShowVisibleOnly and #Player.Chams < 1 then
  837. Player.DoChams(true)
  838. end
  839. elseif (not IsVisible and Player) then
  840. Player.Visible = false
  841.  
  842. if AimTarget == Player then
  843. AimTarget = nil
  844. end
  845.  
  846. Player.SetColor(IsWallbangable and Chams.WallbangColor or Chams.HiddenColor)
  847. end
  848.  
  849. -- Wallhack
  850. if Wallhack.Enabled and ((not Wallhack.PerformanceMode) or (Wallhack.PerformanceMode and Steps % 2 == 0)) then
  851. if (Character and Player.IsEnemy and Player.OnScreen and not Player.Visible) then
  852. if (not Character.Archivable) then
  853. Character.Archivable = true
  854. end
  855.  
  856. if (FakeCharacter) then
  857. for _, Part in next, (FakeCharacter:GetChildren()) do
  858. if (Character:FindFirstChild(Part.Name)) then
  859. if (Part:IsA("Part")) or (Part:IsA("MeshPart")) then
  860. Part.CFrame = (Character:FindFirstChild(Part.Name).CFrame) or CF.new()
  861. end
  862. end
  863. end
  864. else
  865. FakeCharacter = Character:Clone()
  866. for _, v in next, FakeCharacter:GetDescendants() do
  867. if v:IsA("BillboardGui") or v:IsA("Model") then
  868. v:Destroy()
  869. end
  870. end
  871. FakeCharacter.Parent = ViewportFrame
  872. Player.Wallhack = FakeCharacter
  873. end
  874. elseif FakeCharacter then
  875. FakeCharacter:Destroy()
  876. end
  877. end
  878.  
  879. if (AimTarget and PlayerList[AimTarget.Name] == nil) then
  880. AimTarget = nil
  881. end
  882.  
  883. -- Aimbot
  884. if (not AimTarget) and (Aim.KeyHeld or Aim.Toggled) then
  885. StoredDirection = nil
  886. local CanTarget = IsVisible or (IsWallbangable and Aim.Wallbang)
  887.  
  888. if (CanTarget and Part) then
  889. local Distance = huge
  890. if (not UseDistance) then
  891. local ScreenPoint, Visible = Camera:WorldToScreenPoint(Part.Position)
  892. if Visible then
  893. Distance = (V2.new(Mouse.X, Mouse.Y) - V2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
  894. Distance = (Distance <= Aim.FovPx) and Distance or huge
  895. end
  896. elseif Client.RootPart then
  897. local _, Visible = Camera:WorldToScreenPoint(Part.Position)
  898. if Visible then
  899. Distance = Player.Distance
  900. end
  901. end
  902. if Distance < Min then
  903. Min = Distance
  904. AimPart = Part
  905. AimTarget = Player
  906. LockOn_Sound:Play()
  907. end
  908. end
  909. end
  910. end
  911. end
  912.  
  913. if (AimTarget and AimPart) and (Aim.KeyHeld or Aim.Toggled) then
  914. Aiming = true
  915. local Origin = Camera.CFrame.Position
  916. local Target = AimPart.Position + (AimTarget.RootPart.Velocity / 16)
  917.  
  918. if (not StoredDirection or Steps % 3 == 0) then
  919. StoredDirection = CalculateTrajectory(Origin, nV, V3.new(0, -196.2, 0), Target, nV, nV, Gun.BulletSpeed)
  920. end
  921.  
  922. local PartPos = Camera:WorldToScreenPoint(Target)
  923. local BallisticPos = Camera:WorldToScreenPoint(Target + StoredDirection)
  924. local NewPosition = V2.new(PartPos.X, PartPos.Y - abs(PartPos.Y - BallisticPos.Y) * Aim.DropCompensation)
  925.  
  926. ShowUIElement(AimPoint, true)
  927. AimPoint.Position = UD2.new(0, NewPosition.X, 0, NewPosition.Y)
  928. local PxOffset = (V2.new(Mouse.X, Mouse.Y) - V2.new(NewPosition.X, NewPosition.Y)).Magnitude
  929. PercentMatchNum = floor(PxOffset)
  930. PercentMatch.Text = PercentMatchNum
  931.  
  932. if (TriggerBot.Enabled and (PxOffset >= TriggerBot.MaxPxOffset)) then
  933. if (TriggerBot.MustBeScopedIn and PlayerGui.MainGui:WaitForChild("ScopeFrame").Visible) or not TriggerBot.MustBeScopedIn then
  934. if TriggerBot.Delay > 0 then
  935. delay(TriggerBot.Delay, MouseClick)
  936. else
  937. MouseClick()
  938. end
  939. end
  940. end
  941.  
  942. AimRoutine(NewPosition)
  943. else
  944. Aiming = false
  945. ShowUIElement(AimPoint, false)
  946. end
  947.  
  948. FovCircle.ImageColor3 = Rainbow
  949. FovCircle.Position = UD2.new(0, Mouse.X, 0, Mouse.Y)
  950. end
  951. end
  952.  
  953. if Gun.Esp then
  954. GunDrop.ChildAdded:Connect(function(Child)
  955. if Child:IsA("Model") and Child.Name == "Dropped" then
  956. local BillboardGui = Instance.new("BillboardGui")
  957. BillboardGui.Name = "Tag"
  958. BillboardGui.ExtentsOffset = V3.new(0, 1.25, 0)
  959. BillboardGui.LightInfluence = 0
  960. BillboardGui.SizeOffset = V2.new(0, 0.5)
  961. BillboardGui.Size = UD2.new(5, 40, 2, 40)
  962. BillboardGui.MaxDistance = Gun.MaxDistance
  963. BillboardGui.AlwaysOnTop = true
  964.  
  965. local ListLayout = Instance.new("UIListLayout", BillboardGui)
  966. ListLayout.FillDirection = Enum.FillDirection.Vertical
  967. ListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  968. ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  969. ListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
  970.  
  971. local Arrow = SampleInfo:Clone()
  972. Arrow.LayoutOrder = 100
  973. Arrow.Name = "Arrow"
  974. Arrow.TextTransparency = 1/2
  975. Arrow.Text = " ▼"
  976. Arrow.TextColor3 = C3.new(1, 1, 1)
  977. Arrow.Parent = BillboardGui
  978.  
  979. local NameTag = SampleInfo:Clone()
  980. NameTag.LayoutOrder = 0
  981. NameTag.Name = "NameTag"
  982. NameTag.TextTransparency = 0.5
  983. local StrValue = Child:FindFirstChild("Gun")
  984. NameTag.Text = (StrValue and StrValue.Value) or "Unknown"
  985.  
  986. spawn(function()
  987. StrValue = Child:WaitForChild("Gun", 2)
  988. if StrValue then
  989. NameTag.Text = StrValue.Value
  990. end
  991. end)
  992.  
  993. NameTag.Font = Enum.Font.GothamBold
  994. NameTag.TextStrokeTransparency = 2/3
  995. NameTag.TextColor3 = C3.new(1, 1, 1)
  996. NameTag.Parent = BillboardGui
  997. BillboardGui.Parent = Child
  998. end
  999. end)
  1000. end
  1001.  
  1002. InputService.InputBegan:Connect(function(Input)
  1003. if (Input.KeyCode == Aim.Key or Input.UserInputType == Aim.Key) then
  1004. if Aim.Toggle then
  1005. Aim.Toggled = not Aim.Toggled
  1006. else
  1007. Aim.KeyHeld = true
  1008. end
  1009. end
  1010. end)
  1011.  
  1012. InputService.InputEnded:Connect(function(Input)
  1013. if (Input.KeyCode == Aim.Key or Input.UserInputType == Aim.Key) then
  1014. Aim.KeyHeld = false
  1015. end
  1016. end)
  1017.  
  1018. local MuzzleVelocityLabel
  1019. local PenetrationDepthLabel
  1020.  
  1021. for _, v in next, PlayerGui:GetChildren() do
  1022. if v.Name == "ScreenGui" and #v:GetChildren() > 0 then
  1023. for _, x in next, v:GetDescendants() do
  1024. if x.Name == "LOL" then
  1025. -- i swear PF really needs to learn how to make proper guis
  1026. for _, z in next, x.Frame.Frame.Frame:GetChildren() do
  1027. if str_match(z.Text, "studs/s") then
  1028. z.Name = "MVL"
  1029. MuzzleVelocityLabel = z
  1030. elseif str_match(z.Text, "studs") and (#z.Text > 12) then
  1031. z.Name = "PDL"
  1032. PenetrationDepthLabel = z
  1033. end
  1034. end
  1035. end
  1036. end
  1037. end
  1038. end
  1039.  
  1040. RunService:BindToRenderStep("Cheat", 201, MainFunction)
  1041.  
  1042. spawn(function()
  1043. while wait(1/2) do
  1044. Gun.BulletSpeed = (tonumber(str_match(MuzzleVelocityLabel.Text, "%S+$")) or 2000)
  1045. Wallbang.MaxStuds = (tonumber(str_match(PenetrationDepthLabel.Text, "%S+$")) or 1.2)
  1046. end
  1047. end)
  1048.  
  1049. while wait(1/10) do
  1050. StoredPlayers = PlayerList:GetPlayers()
  1051. StoredCharacters = PlayerList:GetCharacters()
  1052. DeadBody:ClearAllChildren()
  1053. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement