Advertisement
Guest User

--Phantom Forces Aimbot no Ban by Aegis1235

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