Facebook
From Jacob, 4 Years ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 153
  1. warn([[
  2. GameSense 1.25 | Legit Cheat by AvexusDev
  3. Public Version | Undetected as of Dec 3 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. Common issues:
  8. - If the aimbot is flicking over people, you want to lower your sensitivity.
  9. - If the aimbot is slower than you'd like it to be, then increase your sensitivity.
  10.        
  11. You can do this by either changing your sensitivity of your mouse, in Phantom Forces
  12. Settings or in the cheat with the "sens_increase" and "sens_decrease" hotkeys.
  13.  
  14. I apologize for the spaghetti code, efficiency wasn't my focus and I just wanted it to function.
  15. I plan on recreating it soon.
  16.  
  17. Settings can be modified below "hotkey".
  18. ]])
  19.  
  20. local UIS = game:GetService('UserInputService')
  21. local RS = game:GetService('RunService')
  22. local Players = game:GetService('Players')
  23. local StarterGui = game:GetService('StarterGui')
  24. local Player = Players.LocalPlayer
  25. local Studio = RS:IsStudio()
  26. local PlayerGui = RS:IsStudio() and Player:WaitForChild('PlayerGui') or game.CoreGui
  27. local Mouse = Player:GetMouse()
  28. local old_icon = Mouse.Icon
  29. local Camera = workspace.CurrentCamera
  30. targetpart = 'Head' -- Don't change this.
  31. -- It can be changed with the targetpart_change hotkey ingame.
  32. local target
  33. local target_old
  34. local alert = false
  35. local lockedon = false
  36. local settingkey = false
  37. local upvals = nil
  38. local val = 1
  39. local windows = {}
  40. local function hb() RS.Heartbeat:wait() end
  41.  
  42. local version = 1.25
  43. local Spawn = nil or game.PlaceId == 292439477 and workspace:WaitForChild('Lobby',2):WaitForChild('Spawn1',2)
  44. local spawned = false
  45.  
  46. script.Name = 'GameSense!'
  47. Mouse.TargetFilter = Camera
  48.  
  49. -- hotkey
  50. toggle_aim = Enum.UserInputType.MouseButton2
  51. toggle_aimbot = Enum.KeyCode.LeftAlt
  52. toggle_trigger = Enum.KeyCode.RightAlt
  53. toggle_esp = Enum.KeyCode.End
  54. toggle_gui = Enum.KeyCode.F6
  55. toggle_bottompos = Enum.KeyCode.F7
  56. toggle_performance = Enum.KeyCode.F8
  57. toggle_bones = Enum.KeyCode.Delete
  58. toggle_chams = Enum.KeyCode.F3
  59. toggle_tracers = Enum.KeyCode.F2
  60. toggle_boxes = Enum.KeyCode.F4
  61. toggle_font = Enum.KeyCode.F1
  62. ffatoggle = Enum.KeyCode.Home
  63. targetpart_change = Enum.KeyCode.BackSlash
  64. priority_toggle = Enum.KeyCode.Insert
  65. sethotkey = Enum.KeyCode.RightControl
  66. -- aim fov
  67. fov_increase = Enum.KeyCode.KeypadPlus
  68. fov_decrease = Enum.KeyCode.KeypadMinus
  69. -- aim sens (how smooth your crosshair will move)
  70. sens_increase = Enum.KeyCode.RightBracket
  71. sens_decrease = Enum.KeyCode.LeftBracket
  72.  
  73. -- parts
  74. parts = {
  75.         'Head';
  76.         'Torso'
  77. }
  78.  
  79. fonts = {
  80.         Enum.Font.SourceSansBold,
  81.         Enum.Font.Cartoon,
  82.         Enum.Font.Arcade,
  83.         Enum.Font.SciFi,
  84.         Enum.Font.Fantasy,
  85.         Enum.Font.Code,
  86.         Enum.Font.Highway,
  87.         Enum.Font.Bodoni
  88. }
  89.  
  90. textSet = false
  91.  
  92. currentfont = 1
  93. ffa = false
  94. hidden = false
  95. performancemode = false
  96. -- aim
  97. fov = 5
  98. sens = .25
  99. drop = .45
  100. aim_toggled = false
  101. bottompos = true
  102. aim_priority = 2
  103. -- [2] FOV or [1] Distance
  104. aimingcolor = Color3.fromRGB(0,165,255)
  105. aimbot_toggled = true
  106. aim_line = true
  107. locksoundid = 538769304
  108. mouseiconid =  18671553
  109.  
  110. -- trigger
  111. trigger_toggled = false
  112. trigger_delay = 1/20
  113.  
  114. -- esp
  115. esp_toggled = true
  116. esp_bones = false
  117. esp_chams = true
  118. esp_tracers = true
  119. -- item_esp (coming soon)
  120. linesize = 1
  121. showdists = true
  122. textsize = 14
  123. textoffset = 20
  124. visiblecolor = Color3.fromRGB(38,255,99)
  125. hiddencolor = Color3.fromRGB(255,37,40)
  126. headboxsize = 4
  127. headboxaimsize = 6
  128. headboxshape = 'diamond'
  129. -- rectangle or diamond
  130.  
  131. -- box esp
  132. bounding_box = true
  133. -- box_pointsize = 0 [UNUSED]
  134. box_line_size = 1
  135. -- box_line_size_visible = 2 [UNUSED]
  136.  
  137. local GUI = Instance.new('ScreenGui',PlayerGui)
  138. GUI.Name = 'GameSense '..version
  139. GUI.ResetOnSpawn = false
  140.  
  141. ESP = Instance.new('Folder',GUI)
  142. ESP.Name = 'ESP'
  143. local Bottom = Instance.new('Frame',ESP)
  144. Bottom.Name = 'Bottom'
  145. Bottom.BackgroundTransparency = 1
  146. Bottom.Size = UDim2.new(0,1,0,1)
  147. Bottom.Position = UDim2.new(.5,0,1,1)
  148.  
  149. local Status = Instance.new('TextLabel',GUI)
  150. Status.Name = 'Status'
  151. Status.BackgroundTransparency = 1
  152. Status.Size = UDim2.new(0,500,0,50)
  153. Status.Position = UDim2.new(.5,-250,.85,0)
  154. Status.TextSize = 24
  155. Status.Font = Enum.Font.SourceSansBold
  156. Status.TextColor3 = Color3.new(1,1,1)
  157. Status.TextStrokeColor3 = Color3.new(0,0,0)
  158. Status.TextStrokeTransparency = .6
  159. Status.Text = 'On Standby'
  160. Status.ZIndex = 50
  161.  
  162. local Credits = Status:Clone()
  163. Credits.Name = 'Credits'
  164. Credits.Parent = GUI
  165. Credits.Position = UDim2.new(.5,-250,.85,-20)
  166. Credits.TextSize = 16
  167. Credits.Text = 'GameSense '..version..' by Avexus!'
  168.  
  169. local FovGui = Instance.new('ImageLabel',GUI)
  170. FovGui.Name = 'FovGui'
  171. FovGui.Image = 'rbxassetid://324848180'
  172. FovGui.Size = UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2)
  173. FovGui.Position = UDim2.new(0.5,-FovGui.AbsoluteSize.X/2,0.5,-FovGui.AbsoluteSize.Y/2)
  174. FovGui.BackgroundTransparency = 1
  175. FovGui.ImageTransparency = .9
  176. FovGui.ImageColor3 = Color3.new(1,0,0)
  177.  
  178. local Indicator = Instance.new('TextLabel',GUI)
  179. Indicator.Name = 'Indicator'
  180. Indicator.Font = Enum.Font.SourceSans
  181. Indicator.TextSize = 14
  182. Indicator.TextXAlignment = Enum.TextXAlignment.Center
  183. Indicator.TextYAlignment = Enum.TextYAlignment.Center
  184. Indicator.TextStrokeTransparency = .75
  185. Indicator.Text = aim_priority>1 and 'FOV: '..fov or 'Distance'
  186.  
  187. local SensAdjust = Instance.new('TextBox',GUI)
  188. SensAdjust.Name = 'SensAdjust'
  189. SensAdjust.Font = Enum.Font.SourceSans
  190. SensAdjust.BackgroundTransparency = .75
  191. SensAdjust.BackgroundColor3 = Color3.new(0,0,0)
  192. SensAdjust.BorderColor3 = Color3.new(1,1,1)
  193. SensAdjust.Size = UDim2.new(0,50,0,20)
  194. SensAdjust.TextStrokeTransparency = .6
  195. SensAdjust.TextColor3 = Color3.new(1,1,1)
  196. SensAdjust.TextSize = 14
  197. SensAdjust.PlaceholderText = 'Sens'
  198. SensAdjust.Text = tonumber(sens)
  199. SensAdjust.Position = Credits.Position + UDim2.new(0,250,0,75)
  200.  
  201. local SensLabel = Instance.new('TextLabel',SensAdjust)
  202. SensLabel.Name = 'SensLabel'
  203. SensLabel.Font = Enum.Font.SourceSans
  204. SensLabel.Size = UDim2.new(1,0,1,0)
  205. SensLabel.BackgroundTransparency = 1
  206. SensLabel.TextSize = 14
  207. SensLabel.TextColor3 = Color3.new(1,1,1)
  208. SensLabel.TextStrokeColor3 = Color3.new(0,0,0)
  209. SensLabel.TextStrokeTransparency = .6
  210. SensLabel.Text = 'Sens:'
  211. SensLabel.Position = UDim2.new(-1,0,0,0)
  212. SensLabel.TextXAlignment = Enum.TextXAlignment.Left
  213.  
  214. local FovAdjust = SensAdjust:Clone()
  215. FovAdjust.Parent = GUI
  216. FovAdjust.PlaceholderText = 'FOV'
  217. FovAdjust.Name = 'FovAdjust'
  218. FovAdjust.Text = tonumber(fov)
  219. FovAdjust.Position = SensAdjust.Position + UDim2.new(0,0,0,20)
  220. FovAdjust.SensLabel.Name = 'FovLabel'
  221. FovAdjust.FovLabel.Text = 'Fov:'
  222.  
  223. local DropAdjust = SensAdjust:Clone()
  224. DropAdjust.Parent = GUI
  225. DropAdjust.PlaceholderText = 'Drop'
  226. DropAdjust.Name = 'DropAdjust'
  227. DropAdjust.Text = tonumber(drop)
  228. DropAdjust.Position = SensAdjust.Position + UDim2.new(0,0,0,40)
  229. DropAdjust.SensLabel.Name = 'DropLabel'
  230. DropAdjust.DropLabel.Text = 'Drop:'
  231.  
  232. local KeysList = Instance.new('TextLabel',GUI)
  233. KeysList.Name = 'KeysList'
  234. KeysList.Font = Enum.Font.SourceSans
  235. KeysList.TextStrokeTransparency = .6
  236. KeysList.TextSize = 14
  237. KeysList.TextColor3 = Color3.new(1,1,1)
  238. KeysList.Size = UDim2.new(0,0,1,0)
  239. KeysList.Position = UDim2.new(0,5,0,-280)
  240. KeysList.BackgroundTransparency = 1
  241. KeysList.Active = false
  242. KeysList.TextXAlignment = Enum.TextXAlignment.Left
  243. KeysList.TextYAlignment = Enum.TextYAlignment.Bottom
  244. KeysList.Text = 'AimBot Toggle: '..toggle_aimbot.Name..'\nAim Toggle: '..toggle_aim.Name..'\nAim Part Toggle: '..targetpart_change.Name..'\nPriority Toggle: '..priority_toggle.Name
  245. ..'\nESP Toggle: '..toggle_esp.Name..'\nBones Toggle: '..toggle_bones.Name..'\nChams Toggle: '..toggle_chams.Name..'\nBoxes Toggle: '..toggle_boxes.Name..'\nFOV Increase: '..fov_increase.Name..'\nFOV Decrease: '..fov_decrease.Name..'\nSens Increase: '
  246. ..sens_increase.Name..'\nSens Decrease: '..sens_decrease.Name..'\nTrigger Toggle: '..toggle_trigger.Name..'\nFFA Toggle: '..ffatoggle.Name..'\nHide Cheats: '..toggle_gui.Name
  247. ..'\nChange ESP Origin: '..toggle_bottompos.Name..'\nPerformance Mode: '..toggle_performance.Name..'\nChange Font: '..toggle_font.Name
  248.  
  249. local n = 0
  250.  
  251. spawn(function()
  252.         while Status do
  253.                 Indicator.TextColor3 = Color3.fromHSV(n,.5,1)
  254.                 FovGui.ImageColor3 = Indicator.TextColor3
  255.                 if not textSet then
  256.                 if aim_toggled and target then
  257.                         Status.TextColor3 = aimingcolor
  258.                         Status.Text = ('Aiming at '..target.Name)
  259.                 else
  260.                         Status.TextColor3 = Color3.fromHSV(n,.5,1)
  261.                         Status.Text = 'On Standby'
  262.                 end
  263.                 end
  264.                 n = (n+.005)%1
  265.                 hb()
  266.         end
  267. end)
  268.  
  269. SensAdjust.InputEnded:Connect(function() if SensAdjust.Text~='' then sens = tonumber(SensAdjust.Text)>0 and tonumber(SensAdjust.Text) or sens end end)
  270. FovAdjust.InputEnded:Connect(function() if FovAdjust.Text~='' then fov = tonumber(FovAdjust.Text)>0 and tonumber(FovAdjust.Text) or fov
  271. FovGui:TweenSize(UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true) end end)
  272. DropAdjust.InputEnded:Connect(function() if DropAdjust.Text~='' then drop = tonumber(DropAdjust.Text)>=0 and tonumber(DropAdjust.Text) or drop end end)
  273.  
  274. local function distfromspawn(x)
  275.         if Spawn then
  276.                 return x:DistanceFromCharacter(Spawn.Position)
  277.         else
  278.                 return 201
  279.         end
  280. end
  281.  
  282. local function setText(text)
  283.         spawn(function()
  284.         textSet = true
  285.         Status.Text = text
  286.         Status.TextColor3 = Color3.new(1,1,1)
  287.         wait(#text/4)
  288.         textSet = false
  289.         end)
  290. end
  291.  
  292. local function playsound(id)
  293.         local sound = Instance.new('Sound',Camera)
  294.         sound.SoundId = 'rbxassetid://'..id
  295.         sound.Volume = 3
  296.         sound:Play()
  297.         game:GetService('Debris'):AddItem(sound,5)
  298. end
  299.  
  300. playsound(1168009121)
  301. Mouse.Icon = 'rbxassetid://'..mouseiconid
  302.  
  303. local function Notification(...)
  304.         playsound(140910211)
  305.         StarterGui:SetCore('SendNotification',...)
  306. end
  307.  
  308. local function DrawLine(Folder,P1,P2,Thickness,Color,LineTransparency,BorderThickness,BorderColor)
  309.         -- Declare variables
  310.         local Point1,Point2 = P1.Position,P2.Position
  311.         if Point1 and Point2 then
  312.         local X,Y = Camera.ViewportSize.X, Camera.ViewportSize.Y
  313.         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)
  314.         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)
  315.         local MidX,MidY = (X1+X2)/2, (Y1+Y2)/2
  316.         -- Set defaults to prevent errors
  317.         Thickness = Thickness or 1
  318.         Color = Color or Color3.new(1,1,1)
  319.         LineTransparency =  LineTransparency or 0
  320.         BorderThickness = BorderThickness or 0
  321.         BorderColor = BorderColor or Color3.new(0,0,0)
  322.         -- Draw the line
  323.         local Line = Folder:FindFirstChild(P1.Name..'-'..P2.Name) or Instance.new('Frame',Folder)
  324.         Line.Visible = false
  325.         Line.BackgroundTransparency = LineTransparency
  326.         Line.BorderSizePixel = BorderThickness
  327.         Line.BorderColor3 = BorderColor
  328.         Line.Size = UDim2.new(0,(Vector2.new(X1,Y1) - Vector2.new(X2,Y2)).magnitude-1,0,Thickness)
  329.         Line.Position = UDim2.new(0,MidX-Line.AbsoluteSize.X/2,0,MidY-Line.AbsoluteSize.Y)
  330.         Line.BackgroundColor3 = Color
  331.         Line.Rotation = math.deg(math.atan2((Y2-Y1),(X2-X1)))
  332.         Line.Name = P1.Name..'-'..P2.Name
  333.         Line.Visible = true
  334.         return Line
  335.         else
  336.                 return nil
  337.         end
  338. end
  339.  
  340. local function GetNearest(Mode)
  341.         local lowest,nearest,gui = math.huge,nil,nil
  342.         if Mode==1 then
  343.         for _,plr in next,Players:GetPlayers() do
  344.                 if plr.Name~=Player.Name and plr.Character~=nil and plr.Character:FindFirstChild(targetpart) then
  345.                         local dist = Player:DistanceFromCharacter(plr.Character[targetpart].Position)
  346.                         local ray = Ray.new(Player.Character.Head.Position,(plr.Character[targetpart].Position-Player.Character.Head.Position).unit*5000)
  347.                         local part,point = workspace:FindPartOnRayWithIgnoreList(ray,{Camera,Player.Character,unpack(windows)})
  348.                         local Z = Camera:WorldToScreenPoint(plr.Character[targetpart].Position).Z
  349.                         if part and part:IsDescendantOf(plr.Character) and Z>0 and dist < lowest and (ffa or plr.TeamColor~=Player.TeamColor) then lowest = dist nearest = plr.Character end
  350.                 end
  351.         end
  352.         elseif Mode==2 then
  353.                 for _,plr in next,Players:GetPlayers() do
  354.                         if plr.Name~=Player.Name and plr.Character~=nil and plr.Character:FindFirstChild(targetpart) then
  355.                                 local pos = Camera:WorldToScreenPoint(plr.Character[targetpart].Position)
  356.                                 local ray = Ray.new(Player.Character[targetpart].Position,(plr.Character[targetpart].Position-Player.Character[targetpart].Position).unit*2048)
  357.                                 local part,point = workspace:FindPartOnRayWithIgnoreList(ray,{Camera,Player.Character,unpack(windows)})
  358.                                 local dist = (Vector2.new(Mouse.X,Mouse.Y)-Vector2.new(pos.X,pos.Y)).magnitude
  359.                                 if part and part:IsDescendantOf(plr.Character) and pos.Z>0 and dist <= Camera.ViewportSize.X/(90/fov) and dist < lowest and (ffa or plr.TeamColor~=Player.TeamColor) then lowest = dist nearest = plr.Character end
  360.                         end
  361.                 end
  362.         end
  363.         return nearest
  364. end
  365.        
  366. Mouse.Move:Connect(function()
  367.         cursor = ESP:FindFirstChild('Cursor') or Instance.new('Frame',ESP)
  368.         cursor.Name = 'Cursor'
  369.         cursor.BackgroundTransparency = 1
  370.         cursor.Size = UDim2.new(0,1,0,1)
  371.         cursor.Position = UDim2.new(0,Mouse.X,0,Mouse.Y)
  372. end)
  373.  
  374. UIS.InputBegan:Connect(function(Input)
  375.         if Input.KeyCode == toggle_aim or Input.UserInputType == toggle_aim then
  376.                 aim_toggled = true
  377.                 warn('GS: aim toggled',aim_toggled and 'on' or 'off')
  378.                 alert = true
  379.                 while aim_toggled and aimbot_toggled do
  380.                         target = GetNearest(aim_priority)
  381.                         if target then
  382.                                 local dist = Player:DistanceFromCharacter(target[targetpart].Position)
  383.                                 local headpos = Camera:WorldToScreenPoint(target[targetpart].Position)
  384.                                 local moveto = Vector2.new((headpos.X-Mouse.X)*sens,(headpos.Y-Mouse.Y)*sens)
  385.                                 aimpos = GUI:FindFirstChild('AimPos') or Instance.new('Frame',GUI)
  386.                                 if not GUI:FindFirstChild('AimPos') then
  387.                                 aimpos.Name = 'AimPos'
  388.                                 aimpos.BorderSizePixel = 1
  389.                                 aimpos.BorderColor3 = Color3.new(0,0,0)
  390.                                 aimpos.BackgroundTransparency = 0
  391.                                 aimpos.BackgroundColor3 = Color3.new(1,1,1)
  392.                                 aimpos.Rotation = 45
  393.                                 aimpos.ZIndex = 4
  394.                                 aimpos.Size = UDim2.new(0,3,0,3)
  395.                                 end
  396.                                 aimpos.Position = UDim2.new(0,headpos.X-aimpos.AbsoluteSize.X/2,0,headpos.Y-aimpos.AbsoluteSize.Y/2)
  397.                                 aimpos.Visible = true
  398.                                 mousemoverel(moveto.X,moveto.Y)
  399.                                 if alert or target~=target_old then
  400.                                         playsound(locksoundid)
  401.                                         print('GS: locked onto',target.Name)
  402.                                         lockedon = true
  403.                                         alert = false
  404.                                 end
  405.                         end
  406.                         RS.Heartbeat:wait()
  407.                         target_old = target
  408.                         if aimpos then
  409.                                 aimpos.Visible = false
  410.                         end
  411.                 end
  412.                 lockedon = false
  413.         elseif Input.KeyCode == toggle_trigger then
  414.                 trigger_toggled = not trigger_toggled
  415.                 setText('Toggled TriggerBot '..(trigger_toggled and 'On' or 'Off'))
  416.                 Notification({Title='TriggerBot';Text='TriggerBot was toggled '..(trigger_toggled and 'On' or 'Off');Duration=2;})
  417.                 warn('trigger toggled',trigger_toggled and 'on' or 'off')
  418.                 local Box = Instance.new('SelectionBox',PlayerGui)
  419.                 Box.Color3 = Color3.new(1,0,0)
  420.                 Box.LineThickness = .05
  421.                 Box.Adornee = nil
  422.                 if trigger_delay>0 then wait(trigger_delay) end
  423.                 while trigger_toggled do
  424.                 local Target = Mouse.Target
  425.                 local plr = Players:FindFirstChild(Target.Parent.Name)
  426.                 if Target and Target.Parent and plr~=nil and plr~=Player and ffa or plr~=nil and plr.TeamColor~=Player.TeamColor then
  427.                         Box.Adornee = Mouse.Target
  428.                         mouse1press()
  429.                         wait()
  430.                         mouse1release()
  431.                 end
  432.                 RS.Heartbeat:wait()
  433.                 end
  434.                 Box:Destroy()
  435.         elseif Input.KeyCode == toggle_esp then
  436.                 esp_toggled = not esp_toggled
  437.                 Notification({Title='ESP';Text='ESP was toggled '..(esp_toggled and 'On' or 'Off');Duration=2;})
  438.                 setText('Toggled ESP '..(esp_toggled and 'On' or 'Off'))
  439.         elseif Input.KeyCode == toggle_aimbot then
  440.                 aimbot_toggled = not aimbot_toggled    
  441.                 Notification({Title='AimBot';Text='AimBot was toggled '..(aimbot_toggled and 'On' or 'Off');Duration=2;})
  442.                 setText('Toggled AimBot '..(aimbot_toggled and 'On' or 'Off'))
  443.         elseif Input.KeyCode == fov_increase then
  444.                 fov = fov + .5
  445.                 FovAdjust.Text = tonumber(fov)
  446.                 if FovGui.Visible then
  447.                         FovGui:TweenSize(UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true)
  448.                 end
  449.                 setText('Aim FOV: '..fov)
  450.         elseif Input.KeyCode == fov_decrease and fov>0 then
  451.                 fov = fov - .5
  452.                 FovAdjust.Text = tonumber(fov)
  453.                 if FovGui.Visible then
  454.                         FovGui:TweenSize(UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true)
  455.                 end
  456.                 setText('Aim FOV: '..fov)
  457.         elseif Input.KeyCode == sens_increase then
  458.                 sens = sens + .05
  459.                 SensAdjust.Text = tonumber(sens)
  460.                 setText('Sens: '..sens)
  461.         elseif Input.KeyCode == sens_decrease then
  462.                 sens = sens - .05
  463.                 SensAdjust.Text = tonumber(sens)
  464.                 setText('Sens: '..sens)
  465.         elseif Input.KeyCode == targetpart_change then
  466.                 val = val+1
  467.                 targetpart = val<=#parts and parts[val] or parts[1]
  468.                 if parts[1]==targetpart then val = 1 end
  469.                 Notification({Title='Target Part';Text='Target part set to '..targetpart;Duration=2;})
  470.                 setText('Target Part: '..targetpart)
  471.         elseif Input.KeyCode == ffatoggle then
  472.                 ffa = not ffa
  473.                 Notification({Title='FFA Mode';Text='FFA Mode is '..(ffa and 'Enabled' or 'Disabled');Duration=2;})
  474.                 setText('FFA Mode: '..(ffa and 'Enabled' or 'Disabled'))
  475.         elseif Input.KeyCode == priority_toggle then
  476.                 aim_priority = aim_priority+1>2 and 0 or 1
  477.                 aim_priority = aim_priority+1
  478.                 FovGui.Visible = aim_priority>1
  479.                 Notification({Title='Aim Priority';Text='Aim Priority: '..(aim_priority==1 and 'Distance' or 'FOV');Duration=2;})
  480.                 setText('Aim Priority: '..(aim_priority==1 and 'Distance' or 'FOV'))
  481.         elseif Input.KeyCode == toggle_bones then
  482.                 esp_bones = not esp_bones
  483.                 if not esp_bones then
  484.                 for _,v in next,ESP:GetDescendants() do
  485.                         if v:IsA('Frame') and v.Name:match('-') then
  486.                                 v:Destroy()
  487.                         end
  488.                 end
  489.                 end
  490.                 Notification({Title='ESP';Text='ESP Bones: '..(esp_bones and 'Enabled' or 'Disabled');Duration=2;})
  491.                 setText('Toggled ESP Bones '..(esp_bones and 'Enabled' or 'Disabled'))
  492.         elseif Input.KeyCode == toggle_gui then
  493.                 hidden = not hidden
  494.                 for _,gui in next,GUI:GetDescendants() do
  495.                         if gui:IsA('GuiObject') and not hidden and not gui.Visible then
  496.                                 gui.Visible = true
  497.                                 Mouse.Icon = 'rbxassetid://'..mouseiconid
  498.                         elseif gui:IsA('GuiObject') and gui.Visible then
  499.                                 gui.Visible = false
  500.                                 esp_toggled = false
  501.                                 Mouse.Icon = old_icon
  502.                         end
  503.                         end
  504.                 elseif Input.KeyCode == toggle_bottompos then
  505.                         bottompos = not bottompos
  506.                         if bottompos then
  507.                                 Bottom.Position = UDim2.new(.5,0,1,1)
  508.                         end
  509.                 elseif Input.KeyCode == toggle_performance then
  510.                         performancemode = not performancemode
  511.                         setText('Performance Mode '..(performancemode and 'Enabled' or 'Disabled'))
  512.                 elseif Input.KeyCode == toggle_chams then
  513.                         esp_chams = not esp_chams
  514.                         setText('Chams '..(esp_chams and 'Enabled' or 'Disabled'))
  515.                         Notification({Title='ESP';Text='Chams: '..(esp_chams and 'Enabled' or 'Disabled');Duration=2;})
  516.                 elseif Input.KeyCode == toggle_tracers then
  517.                         esp_tracers = not esp_tracers
  518.                         setText('Tracers '..(esp_chams and 'Enabled' or 'Disabled'))
  519.                         Notification({Title='ESP';Text='Tracers: '..(esp_tracers and 'Enabled' or 'Disabled');Duration=2;})
  520.                 elseif Input.KeyCode == toggle_boxes then
  521.                         bounding_box = not bounding_box
  522.                         setText('Bounding Boxes '..(bounding_box and 'Enabled' or 'Disabled'))
  523.                         Notification({Title='ESP';Text='Bounding Boxes: '..(bounding_box and 'Enabled' or 'Disabled');Duration=2;})
  524.                 elseif Input.KeyCode == toggle_font then
  525.                                 currentfont = (currentfont+1)>#fonts and 1 or currentfont+1
  526.                                 for _,v in next,GUI:GetDescendants() do
  527.                                         if v.Name~='KeysList' then
  528.                                         if v:IsA('TextLabel') or v:IsA('TextButton') then
  529.                                                 v.Font = fonts[currentfont]
  530.                                         end
  531.                                         end
  532.                                 end
  533.                 end
  534. end)
  535.  
  536. UIS.InputEnded:Connect(function(Input)
  537.         if Input.KeyCode == toggle_aim or Input.UserInputType == toggle_aim then
  538.                 aim_toggled = false
  539.         end
  540. end)
  541.  
  542. local function checkifspawned(x)
  543.         spawned = false
  544.         while not spawned and game.PlaceId==292439477 do
  545.                 spawned = distfromspawn(x)>200 and true or false
  546.                 wait(1/5)
  547.         end
  548.         spawned = true
  549. end
  550.  
  551. checkifspawned(Player)
  552. Player.CharacterAdded:Connect(function(c)
  553.         checkifspawned(Player)
  554.        
  555.         for _,v in next,ESP:GetDescendants() do
  556.                 if v:IsA('Frame') and v.Name:match('-') then
  557.                         v:Destroy()
  558.                 end
  559.         end
  560. end)
  561.  
  562. Notification({Title='GameSense '..version;Text='Cheat loaded successfully.';Icon='rbxassetid://2572157833';Duration=10;})
  563. wait(.5)
  564. Notification({Title='Main Coder';Text='AvexusDev';Duration=4;Icon='https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=AvexusDev'})
  565. wait(.5)
  566. Notification({Title='Thank you!';Text='If you like this script, please leave a vouch on my thread!';Duration=4;})
  567.  
  568. RS.RenderStepped:Connect(function()
  569.         if cursor then
  570.                 FovGui.Position = cursor.Position-UDim2.new(0,FovGui.AbsoluteSize.X/2,0,FovGui.AbsoluteSize.Y/2)
  571.                 Indicator.Position = cursor.Position+UDim2.new(0,0,0,40)
  572.         end
  573. end)
  574.  
  575. Mouse.Button1Down:Connect(function()
  576.         spawn(function()
  577.                 if FovGui.Visible then
  578.                         FovGui:TweenSize(UDim2.new(0,Camera.ViewportSize.X/(90/fov)*2.35,0,Camera.ViewportSize.X/(90/fov)*2.35),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true)
  579.                         wait(.1)
  580.                         FovGui:TweenSize(UDim2.new(0,Camera.ViewportSize.X/(90/fov)*2,0,Camera.ViewportSize.X/(90/fov)*2),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true)
  581.                 end
  582.         end)
  583. end)
  584.  
  585. while true do
  586.         Indicator.Text = (aim_priority>1 and 'FOV: '..fov or 'Distance') ..'\nSens: '..sens..(aim_toggled and '\nAiming' or '')
  587.         if not bottompos then Bottom.Position = cursor.Position end
  588.         if esp_toggled then
  589.         for _,v in next,ESP:children() do
  590.                 if v~=Bottom and not Players:FindFirstChild(v.Name) then
  591.                         v:Destroy()
  592.                 end
  593.         end
  594.         for _,v in next,Players:GetPlayers() do
  595.                 local Char = v.Character
  596.                 if Char and spawned and v~=Player and Char:FindFirstChild(targetpart) and distfromspawn(v)>100 then
  597.                         if ffa or v.TeamColor~=Player.TeamColor then
  598.                         local X = Camera:GetPartsObscuringTarget({Camera.CFrame.p,Char[targetpart].CFrame.p},{v.Character,Char,Camera,unpack(windows)})
  599.                         local Dist = Player:DistanceFromCharacter(Char:FindFirstChild(targetpart).Position)
  600.                         local Color = hiddencolor
  601.                         local Folder = ESP:FindFirstChild(v.Name) or Instance.new('Folder',ESP)
  602.                         Folder.Name = v.Name
  603.                         -- ESP
  604.                         local Head = Folder:FindFirstChild('Head') or Instance.new('Frame',Folder)
  605.                         if not Folder:FindFirstChild('Head') then
  606.                         Head.Name = 'Head'
  607.                         Head.BorderSizePixel = 1
  608.                         Head.BorderColor3 = Color3.new(0,0,0)
  609.                         Head.BackgroundTransparency = 0
  610.                         end
  611.                         Head.BackgroundColor3 = #X>0 and hiddencolor or #X==0 and visiblecolor
  612.                         Head.Rotation = headboxshape=='diamond' and 45 or 0
  613.                         Head.ZIndex = 3
  614.                         local HP = Folder:FindFirstChild('HP') or Instance.new('TextLabel',Folder)
  615.                         if not Folder:FindFirstChild('HP') then
  616.                         HP.Name = 'HP'
  617.                         HP.TextTransparency = Head.BackgroundTransparency-.4
  618.                         HP.Font = fonts[currentfont]
  619.                         HP.TextStrokeTransparency = .6
  620.                         HP.BackgroundTransparency = 1
  621.                         HP.TextSize = 14
  622.                         end
  623.                         HP.Text = showdists and Char.Name..'\n'..math.floor(Dist+.5) or Char.Name
  624.                         if aim_toggled and target==Char then
  625.                                 Head.Size = UDim2.new(0,headboxaimsize,0,headboxaimsize)
  626.                                 Head.BackgroundColor3 = aimingcolor
  627.                                 HP.Text = showdists and '['..Char.Name..']'..'\n'..math.floor(Dist+.5) or '['..Char.Name..']'
  628.                                 HP.TextSize = 16
  629.                         else
  630.                                 Head.Size = UDim2.new(0,headboxsize,0,headboxsize)
  631.                         end
  632.                         HP.TextColor3 = Head.BackgroundColor3
  633.                         local toScreen = Camera:WorldToScreenPoint(Char[targetpart].CFrame.p)
  634.                         if #X==0 then Color = visiblecolor end
  635.                         Head.Position = UDim2.new(0,toScreen.X-Head.Size.X.Offset/2,0,toScreen.Y-Head.Size.Y.Offset/2)
  636.                         HP.Position = Head.Position-UDim2.new(0,0,0,textoffset)
  637.                         if esp_tracers then
  638.                         local Line = DrawLine(Folder,ESP.Bottom,Head,linesize,Head.BackgroundColor3,.75,1,Color3.new(0,0,0))
  639.                                 Line.Visible = Head.Visible
  640.                         else
  641.                                 local imtired = Folder:FindFirstChild(ESP.Bottom.Name..'-'..Head.Name)
  642.                                 if imtired then
  643.                                         imtired:Destroy()
  644.                                 end
  645.                         end
  646.                         if toScreen.Z<=0 then Head.Visible = false else Head.Visible = true end
  647.                         HP.Visible = Head.Visible
  648.                         if Char:FindFirstChild('Humanoid') and Char.Humanoid.RigType==Enum.HumanoidRigType.R6 then
  649.                         local Neck = Folder:FindFirstChild('Neck') or Instance.new('Frame',Folder)
  650.                         Neck.Name = 'Neck'
  651.                         Neck.ZIndex = 2
  652.                         if Char['Torso']~=nil then
  653.                         local Pos = (Char.Torso.CFrame*CFrame.new(0,.8,0)).p
  654.                         local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  655.                         Neck.Position = UDim2.new(0,X,0,Y)
  656.                         Neck.BorderSizePixel = 0
  657.                         if Z<=0 then Neck.Visible = false else Neck.Visible = true end
  658.                         else
  659.                                 Neck.Visible = false
  660.                         end
  661.                         --
  662.                         local Pelvis = Folder:FindFirstChild('Pelvis') or Instance.new('Frame',Folder)
  663.                         Pelvis.Name = 'Pelvis'
  664.                         Pelvis.ZIndex = 2
  665.                         Pelvis.BorderSizePixel = 0
  666.                         if Char['Torso']~=nil then
  667.                         local Pos = (Char.Torso.CFrame*CFrame.new(0,-1,0)).p
  668.                         local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  669.                         Pelvis.Position = UDim2.new(0,X,0,Y)
  670.                         if Z<=0 then Pelvis.Visible = false else Pelvis.Visible = true end
  671.                         else
  672.                                 Pelvis.Visible = false
  673.                         end
  674.                         --
  675.                         local RightFoot = Folder:FindFirstChild('Right Foot') or Instance.new('Frame',Folder)
  676.                         RightFoot.Name = 'Right Foot'
  677.                         RightFoot.ZIndex = 2
  678.                         RightFoot.BorderSizePixel = 0
  679.                         if Char['Right Leg']~=nil then
  680.                         local Pos = (Char['Right Leg'].CFrame*CFrame.new(0,-1,0)).p
  681.                         local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  682.                         RightFoot.Position = UDim2.new(0,X,0,Y)
  683.                         if Z<=0 then RightFoot.Visible = false else RightFoot.Visible = true end
  684.                         else
  685.                                 RightFoot.Visible = false
  686.                         end
  687.                         --
  688.                         local LeftFoot = Folder:FindFirstChild('Left Foot') or Instance.new('Frame',Folder)
  689.                         LeftFoot.Name = 'Left Foot'
  690.                         if Char['Left Leg']~=nil then
  691.                         local Pos = (Char['Left Leg'].CFrame*CFrame.new(0,-1,0)).p
  692.                         local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  693.                         LeftFoot.Position = UDim2.new(0,X,0,Y)
  694.                         LeftFoot.BorderSizePixel = 0
  695.                         if Z<=0 then LeftFoot.Visible = false else LeftFoot.Visible = true end
  696.                         else
  697.                                 LeftFoot.Visible = false
  698.                         end
  699.                         --
  700.                         local RightHand = Folder:FindFirstChild('Right Hand') or Instance.new('Frame',Folder)
  701.                         RightHand.Name = 'Right Hand'
  702.                         RightHand.ZIndex = 2
  703.                         RightHand.BorderSizePixel = 0
  704.                         if Char['Right Arm']~=nil then
  705.                         local Pos = (Char['Right Arm'].CFrame*CFrame.new(0,-1,0)).p
  706.                         local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  707.                         RightHand.Position = UDim2.new(0,X,0,Y)
  708.                         if Z<=0 then RightHand.Visible = false else RightHand.Visible = true end
  709.                         else
  710.                                 RightHand.Visible = false
  711.                         end
  712.                         --
  713.                         local LeftHand = Folder:FindFirstChild('Left Hand') or Instance.new('Frame',Folder)
  714.                         LeftHand.Name = 'Left Hand'
  715.                         LeftHand.ZIndex = 2
  716.                         LeftHand.BorderSizePixel = 0
  717.                         if Char['Left Arm']~=nil then
  718.                         local Pos = (Char['Left Arm'].CFrame*CFrame.new(0,-1,0)).p
  719.                         local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  720.                         LeftHand.Position = UDim2.new(0,X,0,Y)
  721.                         if Z<=0 then LeftHand.Visible = false else LeftHand.Visible = true end
  722.                         else
  723.                                 LeftHand.Visible = false
  724.                         end
  725.                         -- draw joints
  726.                         if esp_bones then
  727.                         if Head.Visible then DrawLine(Folder,Head,Neck,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  728.                         if Neck.Visible then DrawLine(Folder,Neck,Pelvis,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  729.                         if Neck.Visible then DrawLine(Folder,Neck,RightHand,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  730.                         if Neck.Visible then DrawLine(Folder,Neck,LeftHand,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  731.                         if Pelvis.Visible then DrawLine(Folder,Pelvis,RightFoot,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  732.                         if Pelvis.Visible then DrawLine(Folder,Pelvis,LeftFoot,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  733.                         end
  734.                         end
  735.                        
  736.                         if esp_chams then
  737.                                 for _,Part in next,Char:children() do
  738.                                         if Part:IsA('BasePart') and Part.Name~='HumanoidRootPart' then
  739.                                                 local Adornment = Folder:FindFirstChild(Part.Name..'_Cham') or Instance.new('BoxHandleAdornment',Folder)
  740.                                                 if not Folder:FindFirstChild(Part.Name..'_Cham') then
  741.                                                 Adornment.Name = Part.Name..'_Cham'
  742.                                                 Adornment.Adornee = Part
  743.                                                 Adornment.AlwaysOnTop = true
  744.                                                 Adornment.Size = Part.Name=='Head' and Vector3.new(1,1,1) or Part.Size
  745.                                                 Adornment.ZIndex = 1
  746.                                                 end
  747.                                                 Adornment.Color3 = Head.BackgroundColor3
  748.                                         end
  749.                                 end
  750.                         else
  751.                                 for _,v in next,Folder:GetDescendants() do
  752.                                         if v.Name:match('Cham') then
  753.                                                 v:Destroy()
  754.                                         end
  755.                                 end
  756.                         end
  757.                        
  758.                         if bounding_box and Char:FindFirstChild('HumanoidRootPart') then
  759.                                 local Box = Char:FindFirstChild('Box') or Instance.new('BillboardGui',Char)
  760.                                 if not Char:FindFirstChild('Box') then
  761.                                 Box.Name = 'Box'
  762.                                 Box.Adornee = Char:FindFirstChild('HumanoidRootPart')
  763.                                 Box.AlwaysOnTop = true
  764.                                 Box.LightInfluence = 0
  765.                                 Box.StudsOffset = Vector3.new(0,-Box.Adornee.Size.Y/4,0)
  766.                                 Box.Size = UDim2.new(4,1,5,1)
  767.                                 local Top = Instance.new('Frame',Box)
  768.                                 Top.Size = UDim2.new(1,0,0,box_line_size)
  769.                                 Top.BorderSizePixel = 0
  770.                                 local Bot = Top:Clone()
  771.                                 Bot.Position = UDim2.new(0,0,1,-box_line_size)
  772.                                 Bot.Parent = Box
  773.                                 local Left = Top:Clone()
  774.                                 Left.Size = UDim2.new(0,1,1,0)
  775.                                 Left.Parent = Box
  776.                                 local Right = Left:Clone()
  777.                                 Right.Position = UDim2.new(1,-box_line_size,0,0)
  778.                                 Right.Parent = Box
  779.                                 end
  780.                                 for _,v in next,Box:children() do
  781.                                         if v:IsA('Frame') then
  782.                                                 v.BackgroundColor3 = Head.BackgroundColor3
  783.                                         end
  784.                                 end
  785.                         else
  786.                                 local Box = Char:FindFirstChild('Box')
  787.                                 if Box then
  788.                                         Box:Destroy()
  789.                                 end
  790.                         end
  791.                        
  792.                         if lockedon and target and aim_line and ESP:FindFirstChild(target.Name) then
  793.                                 DrawLine(ESP,cursor,ESP:FindFirstChild(target.Name).Head,1,Head.BackgroundColor3,.5)
  794.                         end
  795.                        
  796.                 else
  797.                         if ESP:FindFirstChild(v.Name) then
  798.                                 ESP:FindFirstChild(v.Name):Destroy()
  799.                         end
  800.                         end
  801.                 else
  802.                         if ESP:FindFirstChild(v.Name) then
  803.                                 ESP:FindFirstChild(v.Name):Destroy()
  804.                         end
  805.                 end
  806.                 end
  807.         else
  808.                 for _,v in next,ESP:children() do
  809.                         if v:IsA('Folder') then
  810.                                 v:Destroy()
  811.                         end
  812.                 end
  813.         end
  814.         if performancemode then
  815.                 wait(1/(workspace:GetRealPhysicsFPS()*.75))
  816.         else
  817.                 RS.Stepped:wait()
  818.         end
  819. end
  820.  
  821. --[[ broken
  822. spawn(function()
  823. while script and game.PlaceId == 292439477 and workspace:FindFirstChild('Map') do
  824.         windows = {}
  825.         for _,v in next,workspace.Map:GetChildren() do
  826.                 if v.Name=='Window' then
  827.                         table.insert(windows,v)
  828.                 end
  829.         end
  830.         wait(2)
  831. end
  832. end)
  833. --]]