Advertisement
Guest User

Untitled

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