Advertisement
Guest User

Untitled

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