Advertisement
Xeva

Untitled

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