Advertisement
scripterhaxer

GameSense 1.12

Nov 21st, 2018
3,288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.03 KB | None | 0 0
  1. --[[
  2. GameSense 1.12 | Legit Cheat by AvexusDev
  3. Public Version | Undetected as of Nov 19 2018
  4.  
  5. Add Avexus#1234 on Discord if you have any inquiries or if you've found a bug.
  6. or if you just want someone to talk to I suppose.
  7.  
  8. Features:
  9. - ESP
  10. + Skeleton
  11. + Bounding Box
  12. + Aim Highlight
  13. + Visible Highlight
  14. + Line from Bottom of Screen
  15. + Line from Cursor to Aim Target
  16. - AimBot
  17. + Adjustable Target Part
  18. + Adjustable Aim FOV
  19. + Adjustable Aim Sensitivity
  20. - TriggerBot
  21. + Uses Target Part
  22. + Adjustable Delay
  23.  
  24. Common issues:
  25. - If the aimbot is flicking over people, you want to lower your sensitivity.
  26. - If the aimbot is slower than you'd like it to be, then increase your sensitivity.
  27.  
  28. You can do this by either changing your sensitivity of your mouse, in Phantom Forces
  29. Settings or in the cheat with the "sens_increase" and "sens_decrease" hotkeys.
  30.  
  31. I apologize for the spaghetti code, efficiency wasn't my focus and I just wanted it to function.
  32. I plan on recreating it soon.
  33.  
  34. Settings can be modified below "hotkey".
  35. --]]
  36.  
  37. local UIS = game:GetService('UserInputService')
  38. local RS = game:GetService('RunService')
  39. local Players = game:GetService('Players')
  40. local StarterGui = game:GetService('StarterGui')
  41. local Player = Players.LocalPlayer
  42. local Studio = RS:IsStudio()
  43. local PlayerGui = RS:IsStudio() and Player:WaitForChild('PlayerGui') or game.CoreGui
  44. local Mouse = Player:GetMouse()
  45. local Camera = workspace.CurrentCamera
  46. targetpart = 'Head' -- Don't change this.
  47. -- It can be changed with the targetpart_change hotkey ingame.
  48. local target
  49. local target_old
  50. local alert = false
  51. local lockedon = false
  52. local val = 1
  53. local windows = {}
  54. local function hb() RS.Heartbeat:wait() end
  55.  
  56. local version = 1.12
  57.  
  58. Mouse.TargetFilter = Camera
  59.  
  60. -- hotkey
  61. toggle_aim = Enum.UserInputType.MouseButton2
  62. toggle_aimbot = Enum.KeyCode.LeftAlt
  63. toggle_trigger = Enum.KeyCode.RightAlt
  64. toggle_esp = Enum.KeyCode.End
  65. -- aim fov
  66. fov_increase = Enum.KeyCode.KeypadPlus
  67. fov_decrease = Enum.KeyCode.KeypadMinus
  68. -- aim sens (how smooth your crosshair will move)
  69. sens_increase = Enum.KeyCode.RightBracket
  70. sens_decrease = Enum.KeyCode.LeftBracket
  71. -- aim part
  72. targetpart_change = Enum.KeyCode.BackSlash
  73.  
  74. textSet = false
  75.  
  76. -- aim
  77. fov = 5
  78. sens = 1
  79. aim_toggled = false
  80. aim_priority = 'FOV'
  81. -- FOV or Distance
  82. aimingcolor = Color3.fromRGB(0,165,255)
  83. aimbot_toggled = true
  84. aim_line = true
  85. locksoundid = 538769304
  86.  
  87. -- trigger
  88. trigger_toggled = false
  89. trigger_delay = 1/20
  90.  
  91. -- esp
  92. esp_toggled = true
  93. esp_bones = true
  94. -- esp_chams (coming soon)
  95. -- item_esp (coming soon)
  96. linesize = 1
  97. showdists = true
  98. textsize = 14
  99. textoffset = 20
  100. visiblecolor = Color3.fromRGB(38,255,99)
  101. hiddencolor = Color3.fromRGB(255,37,40)
  102. headboxsize = 4
  103. headboxaimsize = 6
  104. headboxshape = 'diamond'
  105. -- rectangle or diamond
  106.  
  107. -- box esp
  108. bounding_box = false
  109. box_pointsize = 0
  110. box_line_size = 1
  111. box_line_size_visible = 2
  112.  
  113. -- parts
  114. parts = {
  115. 'Head';
  116. 'Torso'
  117. }
  118.  
  119. local GUI = Instance.new('ScreenGui',PlayerGui)
  120. GUI.ResetOnSpawn = false
  121. local Status = Instance.new('TextLabel',GUI)
  122. Status.Name = 'Status'
  123. Status.BackgroundTransparency = 1
  124. Status.Size = UDim2.new(0,500,0,50)
  125. Status.Position = UDim2.new(.5,-250,.85,0)
  126. Status.TextSize = 24
  127. Status.Font = Enum.Font.SourceSansBold
  128. Status.TextColor3 = Color3.new(1,1,1)
  129. Status.TextStrokeColor3 = Color3.new(0,0,0)
  130. Status.TextStrokeTransparency = .6
  131. Status.Text = 'On Standby'
  132. Status.ZIndex = 50
  133.  
  134. local Credits = Status:Clone()
  135. Credits.Name = 'Credits'
  136. Credits.Parent = GUI
  137. Credits.Position = UDim2.new(.5,-250,.85,-20)
  138. Credits.TextSize = 16
  139. Credits.Text = 'GameSense '..version..' by Avexus!'
  140.  
  141. if fov>0 then
  142. FovGui = Instance.new('ImageLabel',GUI)
  143. FovGui.Name = 'FovGui'
  144. FovGui.Image = 'rbxassetid://304079274'
  145. FovGui.Size = UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2)
  146. FovGui.Position = UDim2.new(0.5,-FovGui.AbsoluteSize.X/2,0.5,-FovGui.AbsoluteSize.Y/2)
  147. FovGui.BackgroundTransparency = 1
  148. FovGui.ImageTransparency = .5
  149. FovGui.ImageColor3 = Color3.new(1,0,0)
  150. end
  151.  
  152. local n = 0
  153.  
  154. spawn(function()
  155. while Status do
  156. if not textSet then
  157. if aim_toggled and target then
  158. Status.TextColor3 = aimingcolor
  159. Status.Text = ('Aiming at '..target.Name)
  160. if GUI:FindFirstChild('FovGui') then
  161. GUI.FovGui.ImageColor3 = Status.TextColor3
  162. end
  163. else
  164. Status.TextColor3 = Color3.fromHSV(n,.4,1)
  165. Status.Text = 'On Standby'
  166. if GUI:FindFirstChild('FovGui') then
  167. GUI.FovGui.ImageColor3 = Status.TextColor3
  168. end
  169. n = (n+.005)%1
  170. end
  171. end
  172. hb()
  173. end
  174. end)
  175.  
  176. local function setText(text)
  177. spawn(function()
  178. textSet = true
  179. Status.Text = text
  180. Status.TextColor3 = Color3.new(1,1,1)
  181. wait(#text/4)
  182. textSet = false
  183. end)
  184. end
  185.  
  186. local function playsound(id)
  187. local sound = Instance.new('Sound',Camera)
  188. sound.SoundId = 'rbxassetid://'..id
  189. sound.Volume = 3
  190. sound:Play()
  191. game:GetService('Debris'):AddItem(sound,1)
  192. end
  193.  
  194. local function Notification(...)
  195. playsound(140910211)
  196. StarterGui:SetCore('SendNotification',...)
  197. end
  198.  
  199. local function DrawLine(Folder,P1,P2,Thickness,Color,LineTransparency,BorderThickness,BorderColor)
  200. -- Declare variables
  201. local Point1,Point2 = P1.Position,P2.Position
  202. if Point1 and Point2 then
  203. local X,Y = Camera.ViewportSize.X, Camera.ViewportSize.Y
  204. local X1,X2 = (X * Point1.X.Scale + Point1.X.Offset + P1.Size.X.Offset/2), (X * Point2.X.Scale + Point2.X.Offset + P2.Size.X.Offset/2)
  205. local Y1,Y2 = (Y * Point1.Y.Scale + Point1.Y.Offset + P1.Size.Y.Offset/2), (Y * Point2.Y.Scale + Point2.Y.Offset + P2.Size.Y.Offset/2)
  206. local MidX,MidY = (X1+X2)/2, (Y1+Y2)/2
  207. -- Set defaults to prevent errors
  208. Thickness = type(Thickness)=='number' and Thickness or 1
  209. Color = type(Color)=='userdata' and Color or Color3.new(1,1,1)
  210. LineTransparency = type(LineTransparency)=='number' and LineTransparency or 0
  211. BorderThickness = type(BorderThickness)=='number' and BorderThickness or 0
  212. BorderColor = type(BorderColor)=='userdata' and BorderColor or Color3.new(0,0,0)
  213. -- Draw the line
  214. local Line = Folder:FindFirstChild(P1.Name..'-'..P2.Name) or Instance.new('Frame',Folder)
  215. Line.BackgroundTransparency = LineTransparency
  216. Line.BorderSizePixel = BorderThickness
  217. Line.BorderColor3 = BorderColor
  218. Line.Size = UDim2.new(0,(Vector2.new(X1,Y1) - Vector2.new(X2,Y2)).magnitude-1,0,Thickness)
  219. Line.Position = UDim2.new(0,MidX-Line.AbsoluteSize.X/2,0,MidY-Line.AbsoluteSize.Y)
  220. Line.BackgroundColor3 = Color
  221. Line.Rotation = math.deg(math.atan2((Y2-Y1),(X2-X1)))
  222. Line.Name = P1.Name..'-'..P2.Name
  223. return Line
  224. else
  225. return nil
  226. end
  227. end
  228.  
  229. local function GetNearest(Mode)
  230. local lowest,nearest,gui = math.huge,nil,nil
  231. if Mode=='Distance' then
  232. for _,plr in next,Players:GetPlayers() do
  233. if plr.Name~=Player.Name and plr.TeamColor~=Player.TeamColor and plr.Character:FindFirstChild(targetpart) then
  234. local dist = Player:DistanceFromCharacter(plr.Character[targetpart].Position)
  235. local ray = Ray.new(Player.Character[targetpart].Position,(plr.Character[targetpart].Position-Player.Character[targetpart].Position).unit*2048)
  236. local part,point = workspace:FindPartOnRayWithIgnoreList(ray,{Camera,Player.Character,unpack(windows)})
  237. local Z = Camera:WorldToScreenPoint(plr.Character[targetpart].Position).Z
  238. if part and part:IsDescendantOf(plr.Character) and Z>0 and dist < lowest then lowest = dist nearest = plr.Character end
  239. end
  240. end
  241. elseif Mode=='FOV' then
  242. for _,plr in next,Players:GetPlayers() do
  243. if plr.Name~=Player.Name and plr.TeamColor~=Player.TeamColor and plr.Character:FindFirstChild(targetpart) then
  244. local pos = Camera:WorldToScreenPoint(plr.Character[targetpart].Position)
  245. local ray = Ray.new(Player.Character[targetpart].Position,(plr.Character[targetpart].Position-Player.Character[targetpart].Position).unit*2048)
  246. local part,point = workspace:FindPartOnRayWithIgnoreList(ray,{Camera,Player.Character,unpack(windows)})
  247. local dist = (Vector2.new(Mouse.X,Mouse.Y)-Vector2.new(pos.X,pos.Y)).magnitude
  248. if part and part:IsDescendantOf(plr.Character) and pos.Z>0 and dist <= Camera.ViewportSize.X/(90/fov) and dist < lowest then lowest = dist nearest = plr.Character end
  249. end
  250. end
  251. end
  252. return nearest
  253. end
  254.  
  255. Mouse.Move:Connect(function()
  256. cursor = ESP:FindFirstChild('Cursor') or Instance.new('Frame',ESP)
  257. cursor.Name = 'Cursor'
  258. cursor.BackgroundTransparency = 1
  259. cursor.Size = UDim2.new(0,1,0,1)
  260. cursor.Position = UDim2.new(0,Mouse.X,0,Mouse.Y)
  261. end)
  262.  
  263. UIS.InputBegan:Connect(function(Input)
  264. if Input.KeyCode == toggle_aim or Input.UserInputType == toggle_aim then
  265. aim_toggled = true
  266. warn('aim toggled',aim_toggled and 'on' or 'off')
  267. alert = true
  268. while aim_toggled and aimbot_toggled do
  269. target = GetNearest(aim_priority) or nil
  270. if target then
  271. local headpos = Camera:WorldToScreenPoint(target[targetpart].Position)
  272. local moveto = Vector2.new((headpos.X-Mouse.X)*sens,(headpos.Y-Mouse.Y)*sens)
  273. mousemoverel(moveto.X,moveto.Y)
  274. if alert or target~=target_old then
  275. playsound(locksoundid)
  276. print(target.Name)
  277. lockedon = true
  278. alert = false
  279. end
  280. end
  281. game:service'RunService'.Heartbeat:wait()
  282. target_old = target
  283. end
  284. lockedon = false
  285. elseif Input.KeyCode == toggle_trigger then
  286. trigger_toggled = not trigger_toggled
  287. setText('Toggled TriggerBot '..(trigger_toggled and 'On' or 'Off'))
  288. Notification({Title='TriggerBot';Text='TriggerBot was toggled '..(trigger_toggled and 'On' or 'Off');Duration=2;})
  289. warn('trigger toggled',trigger_toggled and 'on' or 'off')
  290. local Box = Instance.new('SelectionBox',PlayerGui)
  291. Box.Color3 = Color3.new(1,0,0)
  292. Box.LineThickness = .05
  293. Box.Adornee = nil
  294. if trigger_delay>0 then wait(trigger_delay) end
  295. while trigger_toggled do
  296. local Target = Mouse.Target
  297. local Char = Target and Target.Name == targetpart and Players:GetPlayerFromCharacter(Target.Parent)
  298. if Target and Target.Parent and Char and Char.TeamColor~=Player.TeamColor then
  299. Box.Adornee = Mouse.Target
  300. mouse1press()
  301. wait()
  302. mouse1release()
  303. end
  304. game:service'RunService'.Heartbeat:wait()
  305. end
  306. Box:Destroy()
  307. elseif Input.KeyCode == toggle_esp then
  308. esp_toggled = not esp_toggled
  309. Notification({Title='ESP';Text='ESP was toggled '..(esp_toggled and 'On' or 'Off');Duration=2;})
  310. setText('Toggled ESP '..(esp_toggled and 'On' or 'Off'))
  311. elseif Input.KeyCode == toggle_aimbot then
  312. aimbot_toggled = not aimbot_toggled
  313. Notification({Title='AimBot';Text='AimBot was toggled '..(aimbot_toggled and 'On' or 'Off');Duration=2;})
  314. setText('Toggled AimBot '..(aimbot_toggled and 'On' or 'Off'))
  315. elseif Input.KeyCode == fov_increase then
  316. fov = fov + .5
  317. if FovGui~=nil then
  318. FovGui.Size = UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2)
  319. FovGui.Position = UDim2.new(0.5,-FovGui.AbsoluteSize.X/2,0.5,-FovGui.AbsoluteSize.Y/2)
  320. end
  321. Notification({Title='FOV';Text='FOV increased to '..fov;Duration=2;})
  322. setText('Aim FOV: '..fov)
  323. elseif Input.KeyCode == fov_decrease then
  324. fov = fov - .5
  325. if FovGui~=nil then
  326. FovGui.Size = UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2)
  327. FovGui.Position = UDim2.new(0.5,-FovGui.AbsoluteSize.X/2,0.5,-FovGui.AbsoluteSize.Y/2)
  328. end
  329. Notification({Title='FOV';Text='FOV decreased to '..fov;Duration=2;})
  330. setText('Aim FOV: '..fov)
  331. elseif Input.KeyCode == sens_increase then
  332. sens = sens + .1
  333. Notification({Title='Sensitivity';Text='Sens increased to '..sens;Duration=2;})
  334. setText('Sens: '..sens)
  335. elseif Input.KeyCode == sens_decrease then
  336. sens = sens - .1
  337. Notification({Title='Sensitivity';Text='Sens decreased to '..sens;Duration=2;})
  338. setText('Sens: '..sens)
  339. elseif Input.KeyCode == targetpart_change then
  340. val = val+1
  341. targetpart = val<=#parts and parts[val] or parts[1]
  342. if parts[1]==targetpart then val = 1 end
  343. Notification({Title='Target Part';Text='Target part set to '..targetpart;Duration=2;})
  344. setText('Target Part: '..targetpart)
  345. end
  346. end)
  347.  
  348. UIS.InputEnded:Connect(function(Input)
  349. if Input.KeyCode == toggle_aim or Input.UserInputType == toggle_aim then
  350. aim_toggled = false
  351. end
  352. end)
  353.  
  354. ESP = Instance.new('Folder',GUI)
  355. ESP.Name = 'ESP'
  356. local Bottom = Instance.new('Frame',ESP)
  357. Bottom.Name = 'Bottom'
  358. Bottom.BackgroundTransparency = 1
  359. Bottom.Size = UDim2.new(0,1,0,1)
  360. Bottom.Position = UDim2.new(.5,0,1,1)
  361.  
  362. RS:BindToRenderStep('bind',1,function()
  363. if esp_toggled then
  364. for _,v in next,ESP:children() do
  365. if v~=Bottom and not Players:FindFirstChild(v.Name) then
  366. v:Destroy()
  367. end
  368. end
  369. for _,v in next,Players:GetPlayers() do
  370. local Char = v.Character
  371. if Char and v~=Player and v.TeamColor~=Player.TeamColor
  372. and Char:FindFirstChild(targetpart) and Player:DistanceFromCharacter(Char:FindFirstChild(targetpart).Position)<600 then
  373. local X = Camera:GetPartsObscuringTarget({Camera.CFrame.p,Char[targetpart].CFrame.p},{v.Character,Char,Camera,unpack(windows)})
  374. local Dist = Player:DistanceFromCharacter(Char:FindFirstChild(targetpart).Position)
  375. local Color = hiddencolor
  376. local Folder = ESP:FindFirstChild(v.Name) or Instance.new('Folder',ESP)
  377. Folder.Name = v.Name
  378. -- ESP
  379. local Head = Folder:FindFirstChild('Head') or Instance.new('Frame',Folder)
  380. Head.Name = 'Head'
  381. Head.BorderSizePixel = 1
  382. Head.BorderColor3 = Color3.new(0,0,0)
  383. Head.BackgroundTransparency = 0
  384. Head.BackgroundColor3 = #X>0 and hiddencolor or #X==0 and visiblecolor
  385. Head.Rotation = headboxshape=='diamond' and 45 or 0
  386. Head.ZIndex = 3
  387. local HP = Folder:FindFirstChild('HP') or Instance.new('TextLabel',Folder)
  388. HP.Name = 'HP'
  389. HP.BackgroundTransparency = 1
  390. HP.Text = showdists and Char.Name..'\n'..math.floor(Dist+.5) or Char.Name
  391. HP.TextSize = 14
  392. HP.TextTransparency = Head.BackgroundTransparency-.4
  393. HP.Font = Enum.Font.SourceSansBold
  394. HP.TextStrokeTransparency = .6
  395. HP.Size = UDim2.new(0,headboxsize,0,headboxsize)
  396. if aim_toggled and target==Char then
  397. Head.Size = UDim2.new(0,headboxaimsize,0,headboxaimsize)
  398. Head.BackgroundColor3 = aimingcolor
  399. HP.Text = showdists and '['..Char.Name..']'..'\n'..math.floor(Dist+.5) or '['..Char.Name..']'
  400. HP.TextSize = 16
  401. else
  402. Head.Size = UDim2.new(0,headboxsize,0,headboxsize)
  403. end
  404. HP.TextColor3 = Head.BackgroundColor3
  405. local toScreen = Camera:WorldToScreenPoint(Char[targetpart].CFrame.p)
  406. if #X==0 then Color = visiblecolor end
  407. Head.Position = UDim2.new(0,toScreen.X-Head.Size.X.Offset/2,0,toScreen.Y-Head.Size.Y.Offset/2)
  408. HP.Position = Head.Position-UDim2.new(0,0,0,textoffset)
  409. local Line = DrawLine(Folder,ESP.Bottom,Head,linesize,Head.BackgroundColor3,.75,1,Color3.new(0,0,0))
  410. if toScreen.Z<=0 then Head.Visible = false else Head.Visible = true end
  411. Line.Visible = Head.Visible
  412. HP.Visible = Head.Visible
  413. local Neck = Folder:FindFirstChild('Neck') or Instance.new('Frame',Folder)
  414. Neck.Name = 'Neck'
  415. Neck.ZIndex = 2
  416. if Char['Torso']~=nil then
  417. local Pos = (Char.Torso.CFrame*CFrame.new(0,.8,0)).p
  418. local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  419. Neck.Position = UDim2.new(0,X,0,Y)
  420. Neck.BorderSizePixel = 0
  421. if Z<=0 then Neck.Visible = false else Neck.Visible = true end
  422. else
  423. Neck.Visible = false
  424. end
  425. --
  426. local Pelvis = Folder:FindFirstChild('Pelvis') or Instance.new('Frame',Folder)
  427. Pelvis.Name = 'Pelvis'
  428. Pelvis.ZIndex = 2
  429. Pelvis.BorderSizePixel = 0
  430. if Char['Torso']~=nil then
  431. local Pos = (Char.Torso.CFrame*CFrame.new(0,-1,0)).p
  432. local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  433. Pelvis.Position = UDim2.new(0,X,0,Y)
  434. if Z<=0 then Pelvis.Visible = false else Pelvis.Visible = true end
  435. else
  436. Pelvis.Visible = false
  437. end
  438. --
  439. local RightFoot = Folder:FindFirstChild('Right Foot') or Instance.new('Frame',Folder)
  440. RightFoot.Name = 'Right Foot'
  441. RightFoot.ZIndex = 2
  442. RightFoot.BorderSizePixel = 0
  443. if Char['Right Leg']~=nil then
  444. local Pos = (Char['Right Leg'].CFrame*CFrame.new(0,-1,0)).p
  445. local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  446. RightFoot.Position = UDim2.new(0,X,0,Y)
  447. if Z<=0 then RightFoot.Visible = false else RightFoot.Visible = true end
  448. else
  449. RightFoot.Visible = false
  450. end
  451. --
  452. local LeftFoot = Folder:FindFirstChild('Left Foot') or Instance.new('Frame',Folder)
  453. LeftFoot.Name = 'Left Foot'
  454. if Char['Left Leg']~=nil then
  455. local Pos = (Char['Left Leg'].CFrame*CFrame.new(0,-1,0)).p
  456. local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  457. LeftFoot.Position = UDim2.new(0,X,0,Y)
  458. LeftFoot.BorderSizePixel = 0
  459. if Z<=0 then LeftFoot.Visible = false else LeftFoot.Visible = true end
  460. else
  461. LeftFoot.Visible = false
  462. end
  463. --
  464. local RightHand = Folder:FindFirstChild('Right Hand') or Instance.new('Frame',Folder)
  465. RightHand.Name = 'Right Hand'
  466. RightHand.ZIndex = 2
  467. RightHand.BorderSizePixel = 0
  468. if Char['Right Arm']~=nil then
  469. local Pos = (Char['Right Arm'].CFrame*CFrame.new(0,-1,0)).p
  470. local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  471. RightHand.Position = UDim2.new(0,X,0,Y)
  472. if Z<=0 then RightHand.Visible = false else RightHand.Visible = true end
  473. else
  474. RightHand.Visible = false
  475. end
  476. --
  477. local LeftHand = Folder:FindFirstChild('Left Hand') or Instance.new('Frame',Folder)
  478. LeftHand.Name = 'Left Hand'
  479. LeftHand.ZIndex = 2
  480. LeftHand.BorderSizePixel = 0
  481. if Char['Left Arm']~=nil then
  482. local Pos = (Char['Left Arm'].CFrame*CFrame.new(0,-1,0)).p
  483. local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  484. LeftHand.Position = UDim2.new(0,X,0,Y)
  485. if Z<=0 then LeftHand.Visible = false else LeftHand.Visible = true end
  486. else
  487. LeftHand.Visible = false
  488. end
  489. -- draw joints
  490. if esp_bones then
  491. if Head.Visible then DrawLine(Folder,Head,Neck,2,Head.BackgroundColor3,Head.BackgroundTransparency) end
  492. if Neck.Visible then DrawLine(Folder,Neck,Pelvis,2,Head.BackgroundColor3,Head.BackgroundTransparency) end
  493. if Neck.Visible then DrawLine(Folder,Neck,RightHand,2,Head.BackgroundColor3,Head.BackgroundTransparency) end
  494. if Neck.Visible then DrawLine(Folder,Neck,LeftHand,2,Head.BackgroundColor3,Head.BackgroundTransparency) end
  495. if Pelvis.Visible then DrawLine(Folder,Pelvis,RightFoot,2,Head.BackgroundColor3,Head.BackgroundTransparency) end
  496. if Pelvis.Visible then DrawLine(Folder,Pelvis,LeftFoot,2,Head.BackgroundColor3,Head.BackgroundTransparency) end
  497. end
  498.  
  499. if bounding_box then
  500. -- get extents
  501. local highest_X,highest_Y,lowest_X,lowest_Y = 0,0,9e7,9e7
  502. for _,v in next,Folder:children() do
  503. if v:IsA('Frame') and not v.Name:match('-') and not v.Name:match('Point') then
  504. if v.AbsolutePosition.X>=highest_X then
  505. highest_X = v.AbsolutePosition.X
  506. end
  507. if v.AbsolutePosition.X<=lowest_X then
  508. lowest_X = v.AbsolutePosition.X
  509. end
  510. if v.AbsolutePosition.Y>=highest_Y then
  511. highest_Y = v.AbsolutePosition.Y
  512. end
  513. if v.AbsolutePosition.Y<=lowest_Y then
  514. lowest_Y = v.AbsolutePosition.Y
  515. end
  516. end
  517. end
  518. --
  519. local Point1 = Folder:FindFirstChild('Point 1') or Instance.new('Frame',Folder)
  520. Point1.Name = 'Point 1'
  521. Point1.ZIndex = 2
  522. Point1.BorderSizePixel = 0
  523. Point1.Size = UDim2.new(0,1,0,1)
  524. Point1.BackgroundColor3 = Head.BackgroundColor3
  525. Point1.Position = UDim2.new(0,highest_X+1,0,highest_Y+1)
  526.  
  527. local Point2 = Folder:FindFirstChild('Point 2') or Point1:Clone()
  528. Point2.Name = 'Point 2'
  529. Point2.BackgroundColor3 = Head.BackgroundColor3
  530. Point2.Parent = Folder
  531. Point2.Position = UDim2.new(0,highest_X+1,0,lowest_Y-1)
  532.  
  533. local Point3 = Folder:FindFirstChild('Point 3') or Point2:Clone()
  534. Point3.Name = 'Point 3'
  535. Point3.BackgroundColor3 = Head.BackgroundColor3
  536. Point3.Parent = Folder
  537. Point3.Position = UDim2.new(0,lowest_X-1,0,lowest_Y-1)
  538.  
  539. local Point4 = Folder:FindFirstChild('Point 4') or Point3:Clone()
  540. Point4.Name = 'Point 4'
  541. Point4.BackgroundColor3 = Head.BackgroundColor3
  542. Point4.Parent = Folder
  543. Point4.Position = UDim2.new(0,lowest_X-1,0,highest_Y+1)
  544.  
  545. if Head.Visible then
  546. DrawLine(Folder,Point1,Point2,1,Head.BackgroundColor3,.25)
  547. DrawLine(Folder,Point2,Point3,1,Head.BackgroundColor3,.25)
  548. DrawLine(Folder,Point3,Point4,1,Head.BackgroundColor3,.25)
  549. DrawLine(Folder,Point4,Point1,1,Head.BackgroundColor3,.25)
  550. else
  551. DrawLine(Folder,Point1,Point2,1,Head.BackgroundColor3,1)
  552. DrawLine(Folder,Point2,Point3,1,Head.BackgroundColor3,1)
  553. DrawLine(Folder,Point3,Point4,1,Head.BackgroundColor3,1)
  554. DrawLine(Folder,Point4,Point1,1,Head.BackgroundColor3,1)
  555. end
  556. end
  557.  
  558. if lockedon and target and aim_line and ESP:FindFirstChild(target.Name) then
  559. DrawLine(ESP,cursor,ESP:FindFirstChild(target.Name).Head,1,Head.BackgroundColor3,.5)
  560. end
  561.  
  562. elseif not Char or Char:FindFirstChild(targetpart) and Player:DistanceFromCharacter(Char[targetpart].Position)>600 then
  563. if ESP:FindFirstChild(v.Name) then
  564. ESP:FindFirstChild(v.Name):Destroy()
  565. end
  566. end
  567. end
  568. else
  569. for _,v in next,ESP:children() do
  570. if v:IsA('Folder') then
  571. v:Destroy()
  572. end
  573. end
  574. end
  575. end)
  576.  
  577. Notification({Title='GameSense '..version;Text='Cheat loaded successfully.';Icon='rbxassetid://2572157833';Duration=10;})
  578. wait(.5)
  579. Notification({Title='Main Coder';Text='AvexusDev';Duration=4;Icon='https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=AvexusDev'})
  580. wait(.5)
  581. Notification({Title='Thank you!';Text='If you like this script, please leave a vouch on my thread!';Duration=4;})
  582.  
  583. spawn(function()
  584. while script and game.PlaceId == 292439477 and workspace:FindFirstChild('Map') do
  585. windows = {}
  586. for _,v in next,workspace.Map:GetChildren() do
  587. if v.Name=='Window' then
  588. table.insert(windows,v)
  589. end
  590. end
  591. wait(2)
  592. end
  593. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement