Advertisement
Guest User

op aimbot

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