Advertisement
Guest User

yeye

a guest
Jan 22nd, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.29 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.MouseButton2,
  18. MouseBased = true,
  19. AimPart = "Torso",
  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 = false,
  30. Toggled = false,
  31. FovPx = 100,
  32. -- Internal, do not touch
  33. KeyHeld = false,
  34. AimingIn = false
  35. }
  36.  
  37. Wallbang = {
  38. Enabled = false,
  39. MaxWalls = 5,
  40. MaxStuds = 2.8,
  41. MaxDist = 500,
  42. }
  43.  
  44. Esp = {
  45. ShowVisibleOnly = false,
  46. }
  47.  
  48. TriggerBot = {
  49. Enabled = false,
  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(0,0,0),
  61. VisibleColor = C3.new(0,1,0),
  62. HiddenColor = C3.new(1,0,0)
  63. }
  64.  
  65. Box = {
  66. Enabled = false,
  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 = false,
  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.Part
  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 RightCtrl, 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 12/22/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 MouseMoveCompatibility = mousemoverel or mousemove or MoveMouse or PlaceHolder
  729. if Synapse then MouseMoveCompatibility = Synapse.mousemoverel end
  730. if Input then MouseMoveCompatibility = Input.MoveMouse end
  731.  
  732. local MouseMove = function(X, Y)
  733. if not RunService:IsStudio() then
  734. MouseMoveCompatibility((X - Mouse.X) * Aim.X_Sensitivity, (Y - Mouse.Y) * Aim.Y_Sensitivity)
  735. else
  736. warn("("..X..", "..Y..")", "Cannot move mouse in Studio.")
  737. end
  738. end
  739.  
  740. local AimRoutine = function(Position)
  741. MouseMove(Position.X, Position.Y)
  742. end
  743.  
  744. Client = SetUp(Players.LocalPlayer)
  745. PlayerList[Client.Name] = Client
  746.  
  747. 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")
  748. StartUp_Sound:Play()
  749.  
  750. for _, Player in next, Players:GetPlayers() do
  751. if Player ~= Players.LocalPlayer then
  752. PlayerList[Player.Name] = SetUp(Player)
  753. end
  754. end
  755.  
  756. Players.PlayerAdded:Connect(
  757. function(Player)
  758. PlayerList[Player.Name] = SetUp(Player)
  759. end)
  760.  
  761. Players.PlayerRemoving:Connect(
  762. function(Player)
  763. PlayerList[Player.Name]:RemoveAllEsp()
  764. PlayerList[Player.Name] = nil
  765. end)
  766.  
  767. InputService.WindowFocused:Connect(function()
  768. WindowFocused = true
  769. end)
  770.  
  771. InputService.WindowFocusReleased:Connect(function()
  772. WindowFocused = false
  773. end)
  774.  
  775. local Steps = 0
  776. local StoredDirection = 0
  777. local PercentMatchNum = 0
  778.  
  779. local MouseFreed = Enum.MouseBehavior.Default
  780. local MouseLocked = Enum.MouseBehavior.LockCurrentPosition
  781.  
  782. local function MainFunction()
  783. if (WindowFocused and Running) then
  784. Steps = Steps + 1
  785. local Rainbow = Rainbow()
  786. local Min = huge
  787. local OnDebounce = CurrentDebounce > 0
  788. local NumVisPlrs = 0
  789.  
  790. local AimPart = AimTarget and AimTarget.Limbs[Aim.AimPart]
  791.  
  792. AimTarget = (Aim.AimLock) and AimTarget or nil
  793.  
  794. for _, Player in next, StoredPlayers do
  795. if Player.IsEnemy then
  796. local Character = Player.Character
  797. local FakeCharacter = ViewportFrame:FindFirstChild(Character.Name)
  798. local IsVisible = Player:IsVisible()
  799. local IsWallbangable = Wallbang.Enabled and (Player.Distance < Wallbang.MaxDist) and (Player:IsWallbangable())
  800. local Head = Player.Limbs["Head"]
  801. local Part = Player.Limbs[Aim.AimPart]
  802. local HeadScreenPos = Head and Camera:WorldToScreenPoint(Head.Position + V3.new(0, -4.5, 0))
  803. Player.Distance = huge
  804.  
  805. if (Player ~= Client and Client.RootPart and Player.RootPart) then
  806. Player.Distance = (Players.LocalPlayer.Character.HumanoidRootPart.Position - Player.RootPart.Position).Magnitude
  807. end
  808.  
  809. -- Universal ESP Handler
  810. if (Steps % 20) == 0 then
  811. if (not Player.Spawned) and Player.RootPart and (SpawnPoint.Position - Player.RootPart.Position).Magnitude > 50 then
  812. Player.Spawned = true
  813.  
  814. if Player ~= Client and Player.IsEnemy then
  815. local EspVisibleOnly = Esp.ShowVisibleOnly and Player.Visible
  816. local ChamsVisibleOnly = Chams.ShowVisibleOnly and Player.Visible
  817. local BoxVisibleOnly = Box.ShowVisibleOnly and Player.Visible
  818. if Chams.Enabled then
  819. if ChamsVisibleOnly or not Chams.ShowVisibleOnly then
  820. Player.DoChams(true)
  821. end
  822. end
  823. if Box.Enabled then
  824. if BoxVisibleOnly or not Box.ShowVisibleOnly then
  825. Player.DoBox(true)
  826. end
  827. end
  828. if NameTag.Enabled then
  829. Player.DoNameTag(true)
  830. end
  831. elseif Player == Client then
  832. Fullbright()
  833. end
  834. end
  835. if Player.Spawned then
  836. if Player.NameTag:FindFirstChild("Distance") then
  837. Player.NameTag.Distance.Text = tostring(floor(Player.Distance)).."s"
  838. end
  839.  
  840. if (SpawnPoint.Position - Player.RootPart.Position).Magnitude < 100 then
  841. Player.Spawned = false
  842. Player:RemoveAllEsp()
  843. end
  844. end
  845. end
  846.  
  847. -- Tracers
  848. if (Player.Spawned and Tracers.Enabled and HeadScreenPos and HeadScreenPos.Z > 0) then
  849. DrawTracerLine(
  850. Player.Name,
  851. V2.new(Camera.ViewportSize.X * 0.5, Camera.ViewportSize.Y),
  852. V2.new(HeadScreenPos.X, HeadScreenPos.Y),
  853. C3.new(1,1,1),
  854. Tracers.Thickness,
  855. Tracers.FadeWithMaxDistance and Player.Distance / Tracers.MaxDistance or 0
  856. )
  857. elseif Player.Tracer then
  858. Player.Tracer:Destroy()
  859. end
  860.  
  861. -- Chams
  862. if (not Player.Visible and IsVisible) then
  863. Player.Visible = true
  864. Player.SetColor(Chams.VisibleColor)
  865. if Chams.Enabled and Chams.ShowVisibleOnly and #Player.Chams < 1 then
  866. Player.DoChams(true)
  867. end
  868. elseif (not IsVisible and Player) then
  869. Player.Visible = false
  870.  
  871. if AimTarget == Player then
  872. AimTarget = nil
  873. end
  874.  
  875. Player.SetColor(IsWallbangable and Chams.WallbangColor or Chams.HiddenColor)
  876. end
  877.  
  878. -- Wallhack
  879. if Wallhack.Enabled and ((not Wallhack.PerformanceMode) or (Wallhack.PerformanceMode and Steps % 2 == 0)) then
  880. if (Character and Player.IsEnemy and Player.OnScreen and not Player.Visible) then
  881. if (not Character.Archivable) then
  882. Character.Archivable = true
  883. end
  884.  
  885. if (FakeCharacter) then
  886. for _, Part in next, (FakeCharacter:GetChildren()) do
  887. if (Character:FindFirstChild(Part.Name)) then
  888. if (Part:IsA("Part")) or (Part:IsA("MeshPart")) then
  889. Part.CFrame = (Character:FindFirstChild(Part.Name).CFrame) or CF.new()
  890. end
  891. end
  892. end
  893. else
  894. FakeCharacter = Character:Clone()
  895. for _, v in next, FakeCharacter:GetDescendants() do
  896. if v:IsA("BillboardGui") or v:IsA("Model") then
  897. v:Destroy()
  898. end
  899. end
  900. FakeCharacter.Parent = ViewportFrame
  901. Player.Wallhack = FakeCharacter
  902. end
  903. elseif FakeCharacter then
  904. FakeCharacter:Destroy()
  905. end
  906. end
  907.  
  908. if (AimTarget and PlayerList[AimTarget.Name] == nil) then
  909. AimTarget = nil
  910. end
  911.  
  912. -- Aimbot
  913. if (not AimTarget) and (Aim.KeyHeld or Aim.Toggled) then
  914. StoredDirection = nil
  915. local CanTarget = IsVisible or (IsWallbangable and Aim.Wallbang)
  916.  
  917. if (CanTarget and Part) then
  918. local Distance = huge
  919. if (not UseDistance) then
  920. local ScreenPoint, Visible = Camera:WorldToScreenPoint(Part.Position)
  921. if Visible then
  922. Distance = (V2.new(Mouse.X, Mouse.Y) - V2.new(ScreenPoint.X, ScreenPoint.Y)).Magnitude
  923. Distance = (Distance <= Aim.FovPx) and Distance or huge
  924. end
  925. elseif Client.RootPart then
  926. local _, Visible = Camera:WorldToScreenPoint(Part.Position)
  927. if Visible then
  928. Distance = Player.Distance
  929. end
  930. end
  931. if Distance < Min then
  932. Min = Distance
  933. AimPart = Part
  934. AimTarget = Player
  935. LockOn_Sound:Play()
  936. end
  937. end
  938. end
  939. end
  940. end
  941.  
  942. if (AimTarget and AimPart) and (Aim.KeyHeld or Aim.Toggled) then
  943. Aiming = true
  944. local Origin = Camera.CFrame.Position
  945. local Target = AimPart.Position + (AimTarget.RootPart.Velocity / 16)
  946.  
  947. if (not StoredDirection or Steps % 3 == 0) then
  948. StoredDirection = CalculateTrajectory(Origin, nV, V3.new(0, -196.2, 0), Target, nV, nV, Gun.BulletSpeed)
  949. end
  950.  
  951. local PartPos = Camera:WorldToScreenPoint(Target)
  952. local BallisticPos = Camera:WorldToScreenPoint(Target + StoredDirection)
  953. local NewPosition = V2.new(PartPos.X, PartPos.Y - abs(PartPos.Y - BallisticPos.Y) * Aim.DropCompensation)
  954.  
  955. ShowUIElement(AimPoint, true)
  956. AimPoint.Position = UD2.new(0, NewPosition.X, 0, NewPosition.Y)
  957. local PxOffset = (V2.new(Mouse.X, Mouse.Y) - V2.new(NewPosition.X, NewPosition.Y)).Magnitude
  958. PercentMatchNum = floor(PxOffset)
  959. PercentMatch.Text = PercentMatchNum
  960.  
  961. if (TriggerBot.Enabled and (PxOffset >= TriggerBot.MaxPxOffset)) then
  962. if (TriggerBot.MustBeScopedIn and PlayerGui.MainGui:WaitForChild("ScopeFrame").Visible) or not TriggerBot.MustBeScopedIn then
  963. if TriggerBot.Delay > 0 then
  964. delay(TriggerBot.Delay, MouseClick)
  965. else
  966. MouseClick()
  967. end
  968. end
  969. end
  970.  
  971. AimRoutine(NewPosition)
  972. else
  973. Aiming = false
  974. ShowUIElement(AimPoint, false)
  975. end
  976.  
  977. FovCircle.ImageColor3 = Rainbow
  978. FovCircle.Position = UD2.new(0, Mouse.X, 0, Mouse.Y)
  979. end
  980. end
  981.  
  982. if Gun.Esp then
  983. GunDrop.ChildAdded:Connect(function(Child)
  984. if Child:IsA("Model") and Child.Name == "Dropped" then
  985. local BillboardGui = Instance.new("BillboardGui")
  986. BillboardGui.Name = "Tag"
  987. BillboardGui.ExtentsOffset = V3.new(0, 1.25, 0)
  988. BillboardGui.LightInfluence = 0
  989. BillboardGui.SizeOffset = V2.new(0, 0.5)
  990. BillboardGui.Size = UD2.new(5, 40, 2, 40)
  991. BillboardGui.MaxDistance = Gun.MaxDistance
  992. BillboardGui.AlwaysOnTop = true
  993.  
  994. local ListLayout = Instance.new("UIListLayout", BillboardGui)
  995. ListLayout.FillDirection = Enum.FillDirection.Vertical
  996. ListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  997. ListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  998. ListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
  999.  
  1000. local Arrow = SampleInfo:Clone()
  1001. Arrow.LayoutOrder = 100
  1002. Arrow.Name = "Arrow"
  1003. Arrow.TextTransparency = 1/2
  1004. Arrow.Text = " ▼"
  1005. Arrow.TextColor3 = C3.new(1, 1, 1)
  1006. Arrow.Parent = BillboardGui
  1007.  
  1008. local NameTag = SampleInfo:Clone()
  1009. NameTag.LayoutOrder = 0
  1010. NameTag.Name = "NameTag"
  1011. NameTag.TextTransparency = 0.5
  1012. local StrValue = Child:FindFirstChild("Gun")
  1013. NameTag.Text = (StrValue and StrValue.Value) or "Unknown"
  1014.  
  1015. spawn(function()
  1016. StrValue = Child:WaitForChild("Gun", 2)
  1017. if StrValue then
  1018. NameTag.Text = StrValue.Value
  1019. end
  1020. end)
  1021.  
  1022. NameTag.Font = Enum.Font.GothamBold
  1023. NameTag.TextStrokeTransparency = 2/3
  1024. NameTag.TextColor3 = C3.new(1, 1, 1)
  1025. NameTag.Parent = BillboardGui
  1026. BillboardGui.Parent = Child
  1027. end
  1028. end)
  1029. end
  1030.  
  1031. InputService.InputBegan:Connect(function(Input)
  1032. if (Input.KeyCode == Aim.Key or Input.UserInputType == Aim.Key) then
  1033. if Aim.Toggle then
  1034. Aim.Toggled = not Aim.Toggled
  1035. else
  1036. Aim.KeyHeld = true
  1037. end
  1038. elseif (Input.KeyCode == Enum.KeyCode.RightControl) and (epics <= 1) and Running then
  1039. warn("RELOADING ...")
  1040. RunService:UnbindFromRenderStep("Cheat")
  1041. Running = false
  1042.  
  1043. for n, p in next, StoredPlayers do
  1044. p:RemoveAllEsp()
  1045. end
  1046.  
  1047. VPAce:Destroy()
  1048. Ace:Destroy()
  1049.  
  1050. Players.LocalPlayer:FindFirstChild("epic"):Destroy()
  1051. loadstring(game:HttpGet(('https://pastebin.com/raw/ufnW61UM'),true))()
  1052. end
  1053. end)
  1054.  
  1055. InputService.InputEnded:Connect(function(Input)
  1056. if (Input.KeyCode == Aim.Key or Input.UserInputType == Aim.Key) then
  1057. Aim.KeyHeld = false
  1058. end
  1059. end)
  1060.  
  1061. local MuzzleVelocityLabel
  1062. local PenetrationDepthLabel
  1063.  
  1064. for _, v in next, PlayerGui:GetChildren() do
  1065. if v.Name == "ScreenGui" and #v:GetChildren() > 0 then
  1066. for _, x in next, v:GetDescendants() do
  1067. if x.Name == "LOL" then
  1068. -- i swear PF really needs to learn how to make proper guis
  1069. for _, z in next, x.Frame.Frame.Frame:GetChildren() do
  1070. if str_match(z.Text, "studs/s") then
  1071. z.Name = "MVL"
  1072. MuzzleVelocityLabel = z
  1073. elseif str_match(z.Text, "studs") and (#z.Text > 12) then
  1074. z.Name = "PDL"
  1075. PenetrationDepthLabel = z
  1076. end
  1077. end
  1078. end
  1079. end
  1080. end
  1081. end
  1082.  
  1083. Running = true
  1084. RunService:BindToRenderStep("Cheat", 201, MainFunction)
  1085.  
  1086. spawn(function()
  1087. while wait(1/2) do
  1088. if (MuzzleVelocityLabel ~= nil) then
  1089. Gun.BulletSpeed = tonumber(str_match(MuzzleVelocityLabel.Text, "%S+$")) or 2000
  1090. end
  1091. if (PenetrationDepthLabel ~= nil) then
  1092. Wallbang.MaxStuds = tonumber(str_match(PenetrationDepthLabel.Text, "%S+$")) or 1.2
  1093. end
  1094. end
  1095. end)
  1096.  
  1097. while wait(1/10) do
  1098. StoredPlayers = PlayerList:GetPlayers()
  1099. StoredCharacters = PlayerList:GetCharacters()
  1100. DeadBody:ClearAllChildren()
  1101. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement