User:
Anonymous
Date:
08.07.2020 07:34
Files:
1
Size:
38.45 KiB
Hits:
152
Expires
never

 
  1.  
  2. local MainShit = Instance.new("Frame")
  3. local title = Instance.new("TextLabel")
  4. local credits = Instance.new("TextLabel")
  5. local selection = Instance.new("Frame")
  6. local head = Instance.new("ImageButton")
  7. local torso = Instance.new("ImageButton")
  8. local lefta = Instance.new("ImageButton")
  9. local righta = Instance.new("ImageButton")
  10. local leftl = Instance.new("ImageButton")
  11. local rightl = Instance.new("ImageButton")
  12. local target = Instance.new("TextLabel")
  13. local pathfind = Instance.new("TextLabel")
  14. local teamselect = Instance.new("TextLabel")
  15. local wallselect = Instance.new("TextLabel")
  16. local players = Instance.new("ScrollingFrame")
  17. local playerstxt = Instance.new("TextLabel")
  18. local teamstxt = Instance.new("TextLabel")
  19. local teams = Instance.new("ScrollingFrame")
  20. local info = Instance.new("TextLabel")
  21. local aimbot = Instance.new("TextLabel")
  22.  
  23. -- Properties
  24.  
  25. Chat.Name = "Chat"
  26. Chat.Parent = game.CoreGui
  27.  
  28. MainShit.Name = "MainShit"
  29. MainShit.Parent = Chat
  30. MainShit.Active = true
  31. MainShit.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  32. MainShit.BorderColor3 = Color3.new(0, 0, 0)
  33. MainShit.BorderSizePixel = 4
  34. MainShit.Draggable = true
  35. MainShit.Position = UDim2.new(0.699999988, 0, 0.600000024, 0)
  36. MainShit.Size = UDim2.new(0.300000012, 0, 0.400000006, 0)
  37.  
  38. title.Name = "title"
  39. title.Parent = MainShit
  40. title.BackgroundColor3 = Color3.new(0, 0, 0)
  41. title.BorderSizePixel = 0
  42. title.Size = UDim2.new(1, 0, 0.100000001, 0)
  43. title.ZIndex = 2
  44. title.Font = Enum.Font.SourceSans
  45. title.FontSize = Enum.FontSize.Size14
  46. title.Text = "Aimbot GUI"
  47. title.TextColor3 = Color3.new(1, 1, 1)
  48. title.TextScaled = true
  49. title.TextSize = 14
  50. title.TextWrapped = true
  51. title.TextXAlignment = Enum.TextXAlignment.Left
  52.  
  53. credits.Name = "credits"
  54. credits.Parent = title
  55. credits.BackgroundColor3 = Color3.new(0, 0, 0)
  56. credits.BackgroundTransparency = 1
  57. credits.BorderSizePixel = 0
  58. credits.Position = UDim2.new(0.474999994, 0, 0, 0)
  59. credits.Size = UDim2.new(0.5, 0, 1, 0)
  60. credits.ZIndex = 2
  61. credits.Font = Enum.Font.SourceSans
  62. credits.FontSize = Enum.FontSize.Size14
  63. credits.Text = "Created by Moostard"
  64. credits.TextColor3 = Color3.new(1, 1, 1)
  65. credits.TextScaled = true
  66. credits.TextSize = 14
  67. credits.TextWrapped = true
  68. credits.TextXAlignment = Enum.TextXAlignment.Right
  69.  
  70. selection.Name = "selection"
  71. selection.Parent = MainShit
  72. selection.BackgroundColor3 = Color3.new(0, 0, 0)
  73. selection.BorderSizePixel = 0
  74. selection.ClipsDescendants = true
  75. selection.Position = UDim2.new(0.699999988, 0, 0, 0)
  76. selection.Size = UDim2.new(0.300000012, 0, 0.800000012, 0)
  77.  
  78. head.Name = "head"
  79. head.Parent = selection
  80. head.BackgroundColor3 = Color3.new(0, 1, 0)
  81. head.BorderColor3 = Color3.new(0, 0, 0)
  82. head.BorderSizePixel = 0
  83. head.Position = UDim2.new(0.375, 0, 0.25, 0)
  84. head.Size = UDim2.new(0.25, 0, 0.25, 0)
  85. head.SizeConstraint = Enum.SizeConstraint.RelativeXX
  86. head.Image = "rbxassetid://328343971"
  87. head.ImageColor3 = Color3.new(1, 0, 0)
  88.  
  89. torso.Name = "torso"
  90. torso.Parent = selection
  91. torso.BackgroundColor3 = Color3.new(1, 0, 0)
  92. torso.BorderColor3 = Color3.new(0, 0, 0)
  93. torso.BorderSizePixel = 0
  94. torso.Position = UDim2.new(0.25, 0, 0.400000006, 0)
  95. torso.Size = UDim2.new(0.5, 0, 0.5, 0)
  96. torso.SizeConstraint = Enum.SizeConstraint.RelativeXX
  97. torso.Image = "rbxassetid://328343971"
  98. torso.ImageColor3 = Color3.new(1, 0, 0)
  99.  
  100. lefta.Name = "lefta"
  101. lefta.Parent = selection
  102. lefta.BackgroundColor3 = Color3.new(1, 0, 0)
  103. lefta.BorderColor3 = Color3.new(0, 0, 0)
  104. lefta.BorderSizePixel = 0
  105. lefta.Position = UDim2.new(0.00999999978, 0, 0.400000006, 0)
  106. lefta.Size = UDim2.new(0.230000004, 0, 0.5, 0)
  107. lefta.SizeConstraint = Enum.SizeConstraint.RelativeXX
  108. lefta.Image = "rbxassetid://328343971"
  109. lefta.ImageColor3 = Color3.new(1, 0, 0)
  110.  
  111. righta.Name = "righta"
  112. righta.Parent = selection
  113. righta.BackgroundColor3 = Color3.new(1, 0, 0)
  114. righta.BorderColor3 = Color3.new(0, 0, 0)
  115. righta.BorderSizePixel = 0
  116. righta.Position = UDim2.new(0.769999981, 0, 0.400000006, 0)
  117. righta.Size = UDim2.new(0.230000004, 0, 0.5, 0)
  118. righta.SizeConstraint = Enum.SizeConstraint.RelativeXX
  119. righta.Image = "rbxassetid://328343971"
  120. righta.ImageColor3 = Color3.new(1, 0, 0)
  121.  
  122. leftl.Name = "leftl"
  123. leftl.Parent = selection
  124. leftl.BackgroundColor3 = Color3.new(1, 0, 0)
  125. leftl.BorderColor3 = Color3.new(0, 0, 0)
  126. leftl.BorderSizePixel = 0
  127. leftl.Position = UDim2.new(0.25, 0, 0.694999993, 0)
  128. leftl.Size = UDim2.new(0.230000004, 0, 0.5, 0)
  129. leftl.SizeConstraint = Enum.SizeConstraint.RelativeXX
  130. leftl.Image = "rbxassetid://328343971"
  131. leftl.ImageColor3 = Color3.new(1, 0, 0)
  132.  
  133. rightl.Name = "rightl"
  134. rightl.Parent = selection
  135. rightl.BackgroundColor3 = Color3.new(1, 0, 0)
  136. rightl.BorderColor3 = Color3.new(0, 0, 0)
  137. rightl.BorderSizePixel = 0
  138. rightl.Position = UDim2.new(0.524999976, 0, 0.694999993, 0)
  139. rightl.Size = UDim2.new(0.230000004, 0, 0.5, 0)
  140. rightl.SizeConstraint = Enum.SizeConstraint.RelativeXX
  141. rightl.Image = "rbxassetid://328343971"
  142. rightl.ImageColor3 = Color3.new(1, 0, 0)
  143.  
  144. target.Name = "target"
  145. target.Parent = selection
  146. target.BackgroundColor3 = Color3.new(1, 1, 1)
  147. target.BackgroundTransparency = 1
  148. target.BorderSizePixel = 0
  149. target.Position = UDim2.new(0, 0, 0.140000001, 0)
  150. target.Size = UDim2.new(1, 0, 0.100000001, 0)
  151. target.Font = Enum.Font.SourceSans
  152. target.FontSize = Enum.FontSize.Size14
  153. target.Text = "Target"
  154. target.TextColor3 = Color3.new(1, 1, 1)
  155. target.TextScaled = true
  156. target.TextSize = 14
  157. target.TextWrapped = true
  158.  
  159. pathfind.Name = "pathfind"
  160. pathfind.Parent = MainShit
  161. pathfind.BackgroundColor3 = Color3.new(1, 1, 1)
  162. pathfind.BackgroundTransparency = 1
  163. pathfind.BorderSizePixel = 0
  164. pathfind.Position = UDim2.new(0.5, 0, 0.800000012, 0)
  165. pathfind.Size = UDim2.new(0.25, 0, 0.200000003, 0)
  166. pathfind.Font = Enum.Font.SourceSans
  167. pathfind.FontSize = Enum.FontSize.Size14
  168. pathfind.Text = "Press R to toggle pathfinding on."
  169. pathfind.TextColor3 = Color3.new(1, 1, 1)
  170. pathfind.TextScaled = true
  171. pathfind.TextSize = 14
  172. pathfind.TextWrapped = true
  173.  
  174. teamselect.Name = "teamselect"
  175. teamselect.Parent = MainShit
  176. teamselect.BackgroundColor3 = Color3.new(1, 1, 1)
  177. teamselect.BackgroundTransparency = 1
  178. teamselect.BorderSizePixel = 0
  179. teamselect.Position = UDim2.new(0.25, 0, 0.800000012, 0)
  180. teamselect.Size = UDim2.new(0.25, 0, 0.200000003, 0)
  181. teamselect.Font = Enum.Font.SourceSans
  182. teamselect.FontSize = Enum.FontSize.Size14
  183. teamselect.Text = "Press Q to toggle teamkill on."
  184. teamselect.TextColor3 = Color3.new(1, 1, 1)
  185. teamselect.TextScaled = true
  186. teamselect.TextSize = 14
  187. teamselect.TextWrapped = true
  188.  
  189. wallselect.Name = "wallselect"
  190. wallselect.Parent = MainShit
  191. wallselect.BackgroundColor3 = Color3.new(1, 1, 1)
  192. wallselect.BackgroundTransparency = 1
  193. wallselect.BorderSizePixel = 0
  194. wallselect.Position = UDim2.new(0.75, 0, 0.800000012, 0)
  195. wallselect.Size = UDim2.new(0.25, 0, 0.200000003, 0)
  196. wallselect.Font = Enum.Font.SourceSans
  197. wallselect.FontSize = Enum.FontSize.Size14
  198. wallselect.Text = "Press T to toggle aiming through walls off."
  199. wallselect.TextColor3 = Color3.new(1, 1, 1)
  200. wallselect.TextScaled = true
  201. wallselect.TextSize = 14
  202. wallselect.TextWrapped = true
  203.  
  204. players.Name = "players"
  205. players.Parent = MainShit
  206. players.BackgroundColor3 = Color3.new(0, 0, 0)
  207. players.BorderSizePixel = 0
  208. players.Position = UDim2.new(0.00999999978, 0, 0.200000003, 0)
  209. players.Size = UDim2.new(0.300000012, 0, 0.5, 0)
  210. players.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  211. players.CanvasSize = UDim2.new(0, 0, 0, 0)
  212. players.ScrollBarThickness = 5
  213. players.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  214.  
  215. playerstxt.Name = "playerstxt"
  216. playerstxt.Parent = MainShit
  217. playerstxt.BackgroundColor3 = Color3.new(1, 1, 1)
  218. playerstxt.BackgroundTransparency = 1
  219. playerstxt.BorderSizePixel = 0
  220. playerstxt.Position = UDim2.new(0.00999999978, 0, 0.100000001, 0)
  221. playerstxt.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
  222. playerstxt.Font = Enum.Font.SourceSans
  223. playerstxt.FontSize = Enum.FontSize.Size14
  224. playerstxt.Text = "Player Whitelists"
  225. playerstxt.TextColor3 = Color3.new(1, 1, 1)
  226. playerstxt.TextScaled = true
  227. playerstxt.TextSize = 14
  228. playerstxt.TextWrapped = true
  229.  
  230. teamstxt.Name = "teamstxt"
  231. teamstxt.Parent = MainShit
  232. teamstxt.BackgroundColor3 = Color3.new(1, 1, 1)
  233. teamstxt.BackgroundTransparency = 1
  234. teamstxt.BorderSizePixel = 0
  235. teamstxt.Position = UDim2.new(0.351000011, 0, 0.100000001, 0)
  236. teamstxt.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
  237. teamstxt.Font = Enum.Font.SourceSans
  238. teamstxt.FontSize = Enum.FontSize.Size14
  239. teamstxt.Text = "Team Whitelists"
  240. teamstxt.TextColor3 = Color3.new(1, 1, 1)
  241. teamstxt.TextScaled = true
  242. teamstxt.TextSize = 14
  243. teamstxt.TextWrapped = true
  244.  
  245. teams.Name = "teams"
  246. teams.Parent = MainShit
  247. teams.BackgroundColor3 = Color3.new(0, 0, 0)
  248. teams.BorderSizePixel = 0
  249. teams.Position = UDim2.new(0.351000011, 0, 0.200000003, 0)
  250. teams.Size = UDim2.new(0.300000012, 0, 0.5, 0)
  251. teams.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  252. teams.CanvasSize = UDim2.new(0, 0, 0, 0)
  253. teams.ScrollBarThickness = 5
  254. teams.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  255.  
  256. info.Name = "info"
  257. info.Parent = MainShit
  258. info.BackgroundColor3 = Color3.new(1, 1, 1)
  259. info.BackgroundTransparency = 1
  260. info.BorderSizePixel = 0
  261. info.Position = UDim2.new(0, 0, 0.699999988, 0)
  262. info.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
  263. info.Font = Enum.Font.SourceSans
  264. info.FontSize = Enum.FontSize.Size14
  265. info.Text = "Press \"L\" to toggle the hotkey changing GUI, and \"P\" to toggle the aimbot GUI."
  266. info.TextColor3 = Color3.new(1, 1, 1)
  267. info.TextScaled = true
  268. info.TextSize = 14
  269. info.TextWrapped = true
  270.  
  271. aimbot.Name = "aimbot"
  272. aimbot.Parent = MainShit
  273. aimbot.BackgroundColor3 = Color3.new(1, 1, 1)
  274. aimbot.BackgroundTransparency = 1
  275. aimbot.BorderSizePixel = 0
  276. aimbot.Position = UDim2.new(0, 0, 0.800000012, 0)
  277. aimbot.Size = UDim2.new(0.25, 0, 0.200000003, 0)
  278. aimbot.Font = Enum.Font.SourceSans
  279. aimbot.FontSize = Enum.FontSize.Size14
  280. aimbot.Text = "Press E to toggle aimbot on."
  281. aimbot.TextColor3 = Color3.new(1, 1, 1)
  282. aimbot.TextScaled = true
  283. aimbot.TextSize = 14
  284. aimbot.TextWrapped = true
  285.  
  286. -- Objects
  287.  
  288. local ScreenGui = Instance.new("ScreenGui")
  289. local Frame = Instance.new("Frame")
  290. local title = Instance.new("TextLabel")
  291. local credits = Instance.new("TextLabel")
  292. local ChangeAim = Instance.new("TextButton")
  293. local ChangeAimLabel = Instance.new("TextLabel")
  294. local ChangeTeamLabel = Instance.new("TextLabel")
  295. local ChangeTeam = Instance.new("TextButton")
  296. local ChangePathLabel = Instance.new("TextLabel")
  297. local ChangePath = Instance.new("TextButton")
  298. local ChangeWallLabel = Instance.new("TextLabel")
  299. local ChangeWall = Instance.new("TextButton")
  300. local ChangeHoldLabel = Instance.new("TextLabel")
  301. local ChangeToggle = Instance.new("TextButton")
  302. local ChangeSelection = Instance.new("TextButton")
  303. local ChangeSelectionLabel = Instance.new("TextLabel")
  304.  
  305. -- Properties
  306.  
  307. ScreenGui.Parent = game.CoreGui
  308. ScreenGui.Enabled = false
  309.  
  310. Frame.Parent = ScreenGui
  311. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  312. Frame.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  313. Frame.BorderColor3 = Color3.new(0, 0, 0)
  314. Frame.BorderSizePixel = 5
  315. Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
  316. Frame.Size = UDim2.new(0.5, 0, 0.5, 0)
  317.  
  318. title.Name = "title"
  319. title.Parent = Frame
  320. title.BackgroundColor3 = Color3.new(0, 0, 0)
  321. title.BorderSizePixel = 0
  322. title.Size = UDim2.new(1, 0, 0.100000001, 0)
  323. title.ZIndex = 2
  324. title.Font = Enum.Font.SourceSans
  325. title.FontSize = Enum.FontSize.Size14
  326. title.Text = "Aimbot Hotkey Change GUI"
  327. title.TextColor3 = Color3.new(1, 1, 1)
  328. title.TextScaled = true
  329. title.TextSize = 14
  330. title.TextWrapped = true
  331. title.TextXAlignment = Enum.TextXAlignment.Left
  332.  
  333. credits.Name = "credits"
  334. credits.Parent = title
  335. credits.BackgroundColor3 = Color3.new(0, 0, 0)
  336. credits.BackgroundTransparency = 1
  337. credits.BorderSizePixel = 0
  338. credits.Position = UDim2.new(0.474999994, 0, 0, 0)
  339. credits.Size = UDim2.new(0.5, 0, 1, 0)
  340. credits.ZIndex = 2
  341. credits.Font = Enum.Font.SourceSans
  342. credits.FontSize = Enum.FontSize.Size14
  343. credits.Text = "Created by Moostard"
  344. credits.TextColor3 = Color3.new(1, 1, 1)
  345. credits.TextScaled = true
  346. credits.TextSize = 14
  347. credits.TextWrapped = true
  348. credits.TextXAlignment = Enum.TextXAlignment.Right
  349.  
  350. ChangeAim.Name = "ChangeAim"
  351. ChangeAim.Parent = Frame
  352. ChangeAim.BackgroundColor3 = Color3.new(0, 0, 0)
  353. ChangeAim.BorderSizePixel = 0
  354. ChangeAim.Position = UDim2.new(0.150000006, 0, 0.25, 0)
  355. ChangeAim.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
  356. ChangeAim.Font = Enum.Font.SourceSans
  357. ChangeAim.FontSize = Enum.FontSize.Size14
  358. ChangeAim.Text = "Current: E"
  359. ChangeAim.TextColor3 = Color3.new(1, 1, 1)
  360. ChangeAim.TextScaled = true
  361. ChangeAim.TextSize = 14
  362. ChangeAim.TextWrapped = true
  363.  
  364. ChangeAimLabel.Name = "ChangeAimLabel"
  365. ChangeAimLabel.Parent = Frame
  366. ChangeAimLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  367. ChangeAimLabel.BackgroundTransparency = 1
  368. ChangeAimLabel.Position = UDim2.new(0, 0, 0.125, 0)
  369. ChangeAimLabel.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  370. ChangeAimLabel.Font = Enum.Font.SourceSans
  371. ChangeAimLabel.FontSize = Enum.FontSize.Size14
  372. ChangeAimLabel.Text = "Change the Aimbot Hotkey"
  373. ChangeAimLabel.TextColor3 = Color3.new(1, 1, 1)
  374. ChangeAimLabel.TextScaled = true
  375. ChangeAimLabel.TextSize = 14
  376. ChangeAimLabel.TextWrapped = true
  377.  
  378. ChangeTeamLabel.Name = "ChangeTeamLabel"
  379. ChangeTeamLabel.Parent = Frame
  380. ChangeTeamLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  381. ChangeTeamLabel.BackgroundTransparency = 1
  382. ChangeTeamLabel.Position = UDim2.new(0, 0, 0.425000012, 0)
  383. ChangeTeamLabel.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  384. ChangeTeamLabel.Font = Enum.Font.SourceSans
  385. ChangeTeamLabel.FontSize = Enum.FontSize.Size14
  386. ChangeTeamLabel.Text = "Change the Teamkill Hotkey"
  387. ChangeTeamLabel.TextColor3 = Color3.new(1, 1, 1)
  388. ChangeTeamLabel.TextScaled = true
  389. ChangeTeamLabel.TextSize = 14
  390. ChangeTeamLabel.TextWrapped = true
  391.  
  392. ChangeTeam.Name = "ChangeTeam"
  393. ChangeTeam.Parent = Frame
  394. ChangeTeam.BackgroundColor3 = Color3.new(0, 0, 0)
  395. ChangeTeam.BorderSizePixel = 0
  396. ChangeTeam.Position = UDim2.new(0.150000006, 0, 0.550000012, 0)
  397. ChangeTeam.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
  398. ChangeTeam.Font = Enum.Font.SourceSans
  399. ChangeTeam.FontSize = Enum.FontSize.Size14
  400. ChangeTeam.Text = "Current: Q"
  401. ChangeTeam.TextColor3 = Color3.new(1, 1, 1)
  402. ChangeTeam.TextScaled = true
  403. ChangeTeam.TextSize = 14
  404. ChangeTeam.TextWrapped = true
  405.  
  406. ChangePathLabel.Name = "ChangePathLabel"
  407. ChangePathLabel.Parent = Frame
  408. ChangePathLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  409. ChangePathLabel.BackgroundTransparency = 1
  410. ChangePathLabel.Position = UDim2.new(0, 0, 0.725000024, 0)
  411. ChangePathLabel.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  412. ChangePathLabel.Font = Enum.Font.SourceSans
  413. ChangePathLabel.FontSize = Enum.FontSize.Size14
  414. ChangePathLabel.Text = "Change the Pathfinding Hotkey"
  415. ChangePathLabel.TextColor3 = Color3.new(1, 1, 1)
  416. ChangePathLabel.TextScaled = true
  417. ChangePathLabel.TextSize = 14
  418. ChangePathLabel.TextWrapped = true
  419.  
  420. ChangePath.Name = "ChangePath"
  421. ChangePath.Parent = Frame
  422. ChangePath.BackgroundColor3 = Color3.new(0, 0, 0)
  423. ChangePath.BorderSizePixel = 0
  424. ChangePath.Position = UDim2.new(0.150000006, 0, 0.850000024, 0)
  425. ChangePath.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
  426. ChangePath.Font = Enum.Font.SourceSans
  427. ChangePath.FontSize = Enum.FontSize.Size14
  428. ChangePath.Text = "Current: R"
  429. ChangePath.TextColor3 = Color3.new(1, 1, 1)
  430. ChangePath.TextScaled = true
  431. ChangePath.TextSize = 14
  432. ChangePath.TextWrapped = true
  433.  
  434. ChangeWallLabel.Name = "ChangeWallLabel"
  435. ChangeWallLabel.Parent = Frame
  436. ChangeWallLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  437. ChangeWallLabel.BackgroundTransparency = 1
  438. ChangeWallLabel.Position = UDim2.new(0.5, 0, 0.125, 0)
  439. ChangeWallLabel.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  440. ChangeWallLabel.Font = Enum.Font.SourceSans
  441. ChangeWallLabel.FontSize = Enum.FontSize.Size14
  442. ChangeWallLabel.Text = "Change the Aiming Through Walls Hotkey"
  443. ChangeWallLabel.TextColor3 = Color3.new(1, 1, 1)
  444. ChangeWallLabel.TextScaled = true
  445. ChangeWallLabel.TextSize = 14
  446. ChangeWallLabel.TextWrapped = true
  447.  
  448. ChangeWall.Name = "ChangeWall"
  449. ChangeWall.Parent = Frame
  450. ChangeWall.BackgroundColor3 = Color3.new(0, 0, 0)
  451. ChangeWall.BorderSizePixel = 0
  452. ChangeWall.Position = UDim2.new(0.649999976, 0, 0.25, 0)
  453. ChangeWall.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
  454. ChangeWall.Font = Enum.Font.SourceSans
  455. ChangeWall.FontSize = Enum.FontSize.Size14
  456. ChangeWall.Text = "Current: T"
  457. ChangeWall.TextColor3 = Color3.new(1, 1, 1)
  458. ChangeWall.TextScaled = true
  459. ChangeWall.TextSize = 14
  460. ChangeWall.TextWrapped = true
  461.  
  462. ChangeHoldLabel.Name = "ChangeHoldLabel"
  463. ChangeHoldLabel.Parent = Frame
  464. ChangeHoldLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  465. ChangeHoldLabel.BackgroundTransparency = 1
  466. ChangeHoldLabel.Position = UDim2.new(0.5, 0, 0.425000012, 0)
  467. ChangeHoldLabel.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  468. ChangeHoldLabel.Font = Enum.Font.SourceSans
  469. ChangeHoldLabel.FontSize = Enum.FontSize.Size14
  470. ChangeHoldLabel.Text = "Change toggling/holding keys to enable."
  471. ChangeHoldLabel.TextColor3 = Color3.new(1, 1, 1)
  472. ChangeHoldLabel.TextScaled = true
  473. ChangeHoldLabel.TextSize = 14
  474. ChangeHoldLabel.TextWrapped = true
  475.  
  476. ChangeToggle.Name = "ChangeToggle"
  477. ChangeToggle.Parent = Frame
  478. ChangeToggle.BackgroundColor3 = Color3.new(0, 0, 0)
  479. ChangeToggle.BorderSizePixel = 0
  480. ChangeToggle.Position = UDim2.new(0.550000012, 0, 0.550000012, 0)
  481. ChangeToggle.Size = UDim2.new(0.400000006, 0, 0.150000006, 0)
  482. ChangeToggle.Font = Enum.Font.SourceSans
  483. ChangeToggle.FontSize = Enum.FontSize.Size14
  484. ChangeToggle.Text = "Current: Toggling"
  485. ChangeToggle.TextColor3 = Color3.new(1, 1, 1)
  486. ChangeToggle.TextScaled = true
  487. ChangeToggle.TextSize = 14
  488. ChangeToggle.TextWrapped = true
  489.  
  490. ChangeSelection.Name = "ChangeSelection"
  491. ChangeSelection.Parent = Frame
  492. ChangeSelection.BackgroundColor3 = Color3.new(0, 0, 0)
  493. ChangeSelection.BorderSizePixel = 0
  494. ChangeSelection.Position = UDim2.new(0.550000012, 0, 0.850000024, 0)
  495. ChangeSelection.Size = UDim2.new(0.400000006, 0, 0.150000006, 0)
  496. ChangeSelection.Font = Enum.Font.SourceSans
  497. ChangeSelection.FontSize = Enum.FontSize.Size14
  498. ChangeSelection.Text = "Current: Closest To Player"
  499. ChangeSelection.TextColor3 = Color3.new(1, 1, 1)
  500. ChangeSelection.TextScaled = true
  501. ChangeSelection.TextSize = 14
  502. ChangeSelection.TextWrapped = true
  503.  
  504. ChangeSelectionLabel.Name = "ChangeSelectionLabel"
  505. ChangeSelectionLabel.Parent = Frame
  506. ChangeSelectionLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  507. ChangeSelectionLabel.BackgroundTransparency = 1
  508. ChangeSelectionLabel.Position = UDim2.new(0.5, 0, 0.725000024, 0)
  509. ChangeSelectionLabel.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  510. ChangeSelectionLabel.Font = Enum.Font.SourceSans
  511. ChangeSelectionLabel.FontSize = Enum.FontSize.Size14
  512. ChangeSelectionLabel.Text = "Change selection mode."
  513. ChangeSelectionLabel.TextColor3 = Color3.new(1, 1, 1)
  514. ChangeSelectionLabel.TextScaled = true
  515. ChangeSelectionLabel.TextSize = 14
  516. ChangeSelectionLabel.TextWrapped = true
  517.  
  518. ---\\ SCRIPT //---
  519.  
  520. local plr = game:GetService('Players').LocalPlayer
  521. local haaa = false
  522. local mou = plr:GetMouse()
  523. local aimkey = "e"
  524. local toggle = true
  525. local teamkey = "q"
  526. local pathkey = "r"
  527. local wallkey = "t"
  528. local tk = false
  529. local path = false
  530. local nearmouse = false
  531. local pastpath = nil
  532. local editing = nil
  533. local walls = true
  534. local plrs = {}
  535. local tms = {}
  536.  
  537. function sameteam(player,player2)
  538.         local good = false
  539.         if player.TeamColor == player2.TeamColor then
  540.                 good = true
  541.         end
  542.         return good
  543. end
  544.  
  545. function distance(point1,point2,heck)
  546.         local result = math.huge
  547.         if nearmouse == false and (heck == false or heck == nil) then
  548.                 result = (point1-point2).magnitude
  549.         else
  550.                 local hmm,eh = workspace.CurrentCamera:WorldToViewportPoint(point2)
  551.                 print((workspace.CurrentCamera.ViewportSize-Vector2.new(0,hmm.X,0,hmm.Y)).magnitude)
  552.                 return (workspace.CurrentCamera.ViewportSize-Vector2.new(0,hmm.X,0,hmm.Y)).magnitude
  553.         end
  554.         print(result)
  555.         return result
  556. end
  557.  
  558. ChangeToggle.MouseButton1Click:connect(function()
  559.         if toggle == true then
  560.                 toggle = false
  561.                 ChangeToggle.Text = "Current: Holding"
  562.         else
  563.                 toggle = true
  564.                 ChangeToggle.Text = "Current: Toggling"
  565.         end
  566. end)
  567. ChangeSelection.MouseButton1Click:connect(function()
  568.         if nearmouse == true then
  569.                 nearmouse = false
  570.                 ChangeSelection.Text = "Current: Closest To Player"
  571.         else
  572.                 nearmouse = true
  573.                 ChangeSelection.Text = "Current: Closest To Center of Camera"
  574.         end
  575. end)
  576. ChangeAim.MouseButton1Click:connect(function()
  577.         if editing == nil then
  578.                 ChangeAim.Text = "Press any key to change."
  579.                 editing = "aim"
  580.         end
  581. end)
  582. ChangeWall.MouseButton1Click:connect(function()
  583.         if editing == nil then
  584.                 ChangeWall.Text = "Press any key to change."
  585.                 editing = "wall"
  586.         end
  587. end)
  588. ChangePath.MouseButton1Click:connect(function()
  589.         if editing == nil then
  590.                 ChangePath.Text = "Press any key to change."
  591.                 editing = "path"
  592.         end
  593. end)
  594. ChangeTeam.MouseButton1Click:connect(function()
  595.         if editing == nil then
  596.                 ChangeTeam.Text = "Press any key to change."
  597.                 editing = "team"
  598.         end
  599. end)
  600.  
  601. function cansee(targ)
  602.         local cam = workspace.CurrentCamera
  603.         local ray = Ray.new(plr.Character.Head.CFrame.p, (targ.CFrame.p - plr.Character.Head.CFrame.p).unit * 300)
  604.         local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {plr.Character}, false, true)
  605.         if part then
  606.                 local humanoid = part.Parent:FindFirstChildOfClass("Humanoid")
  607.  
  608.                 if not humanoid then
  609.                         humanoid = part.Parent.Parent:FindFirstChildOfClass("Humanoid")
  610.                 end
  611.  
  612.                 if humanoid and targ and humanoid.Parent == targ.Parent then
  613.                         local blah,actualthing = cam:WorldToScreenPoint(targ.Position)
  614.                         if actualthing == true then
  615.                                 return true
  616.                         else
  617.                                 return false
  618.                         end
  619.                 else
  620.                         return false
  621.                 end
  622.         else
  623.                 return false
  624.         end
  625. end
  626.  
  627. function getdatray(pointuno,pointdos)
  628.         local ray = Ray.new(pointdos,(pointdos - pointuno).unit * 300)
  629.         local distance = (pointuno - pointdos).magnitude
  630.         local pos = CFrame.new(pointuno, pointdos) * CFrame.new(0, 0, -distance / 2)
  631.         return distance,pos
  632. end
  633.  
  634. mou.Button2Down:connect(function()
  635.         if editing ~= nil then
  636.                 if editing == "aim" then
  637.                         aimkey = "RMB"
  638.                         if haaa then
  639.                                 aimbot.Text = "Press RMB to toggle aimbot off."
  640.                         else
  641.                                 aimbot.Text = "Press RMB to toggle aimbot on."
  642.                         end
  643.                         ChangeAim.Text = "Current: RMB"
  644.                 elseif editing == "team" then
  645.                         teamkey = "RMB"
  646.                         if tk then
  647.                                 teamselect.Text = "Press RMB to toggle teamkill off."
  648.                         else
  649.                                 teamselect.Text = "Press RMB to toggle teamkill on."
  650.                         end
  651.                         ChangeTeam.Text = "Current: RMB"
  652.                 elseif editing == "path" then
  653.                         pathkey = "RMB"
  654.                         if path then
  655.                                 pathfind.Text = "Press RMB to toggle pathfinding off."
  656.                         else
  657.                                 pathfind.Text = "Press RMB to toggle pathfinding on."
  658.                         end
  659.                         ChangePath.Text = "Current: RMB"
  660.                 elseif editing == "wall" then
  661.                         wallkey = "RMB"
  662.                         if walls then
  663.                                 wallselect.Text = "Press RMB to toggle aiming through walls off."
  664.                         else
  665.                                 wallselect.Text = "Press RMB to toggle aiming through walls on."
  666.                         end
  667.                         ChangeWall.Text = "Current: RMB"
  668.                 end
  669.                 editing = nil
  670.         else
  671.                 if aimkey == "RMB" then
  672.                         if haaa and toggle == true then
  673.                                 aimbot.Text = "Press "..string.upper(aimkey).." to toggle aimbot on."
  674.                                 haaa = false
  675.                         elseif haaa == false then
  676.                                 aimbot.Text = "Press "..string.upper(aimkey).." to toggle aimbot off."
  677.                                 haaa = true
  678.                         end
  679.                 elseif teamkey == "RMB" then
  680.                         if tk then
  681.                                 teamselect.Text = "Press "..string.upper(teamkey).." to toggle teamkill on."
  682.                                 tk = false
  683.                         else
  684.                                 teamselect.Text = "Press "..string.upper(teamkey).." to toggle teamkill off."
  685.                                 tk = true
  686.                         end
  687.                 elseif pathkey == "RMB" then
  688.                 if path then
  689.                         pathfind.Text = "Press "..string.upper(pathkey).." to toggle pathfinding on."
  690.                         path = false
  691.                 else
  692.                         pathfind.Text = "Press "..string.upper(pathkey).." to toggle pathfinding off."
  693.                         path = true
  694.                 end
  695.                 elseif wallkey == "RMB" then
  696.                         if walls then
  697.                                 walls = false
  698.                                 wallselect.Text = "Press "..string.upper(wallkey).." to toggle aiming through walls on."
  699.                         else
  700.                                 walls = true
  701.                                 wallselect.Text = "Press "..string.upper(wallkey).." to toggle aiming through walls off."
  702.                         end
  703.                 end
  704.         end
  705. end)
  706.  
  707. mou.Button2Up:connect(function()
  708.         if aimkey == "RMB" and toggle == false then
  709.                 aimbot.Text = "Press "..string.upper(aimkey).." to toggle aimbot on."
  710.                 haaa = false
  711.         end
  712. end)
  713.  
  714. mou.KeyDown:connect(function(key)
  715.         if editing ~= nil then
  716.                 if editing == "aim" then
  717.                         aimkey = key
  718.                         if haaa then
  719.                                 aimbot.Text = "Press "..string.upper(aimkey).." to toggle aimbot off."
  720.                         else
  721.                                 aimbot.Text = "Press "..string.upper(aimkey).." to toggle aimbot on."
  722.                         end
  723.                         ChangeAim.Text = "Current: "..string.upper(key)
  724.                 elseif editing == "team" then
  725.                         teamkey = key
  726.                         if tk then
  727.                                 teamselect.Text = "Press "..string.upper(teamkey).." to toggle teamkill off."
  728.                         else
  729.                                 teamselect.Text = "Press "..string.upper(teamkey).." to toggle teamkill on."
  730.                         end
  731.                         ChangeTeam.Text = "Current: "..string.upper(key)
  732.                 elseif editing == "path" then
  733.                         pathkey = key
  734.                         if path then
  735.                                 pathfind.Text = "Press "..string.upper(pathkey).." to toggle pathfinding off."
  736.                         else
  737.                                 pathfind.Text = "Press "..string.upper(pathkey).." to toggle pathfinding on."
  738.                         end
  739.                         ChangePath.Text = "Current: "..string.upper(key)
  740.                 elseif editing == "wall" then
  741.                         wallkey = key
  742.                         if walls then
  743.                                 wallselect.Text = "Press "..string.upper(wallkey).." to toggle aiming through walls off."
  744.                         else
  745.                                 wallselect.Text = "Press "..string.upper(wallkey).." to toggle aiming through walls on."
  746.                         end
  747.                         ChangeWall.Text = "Current: "..string.upper(key)
  748.                 end
  749.                 editing = nil
  750.         elseif key == "p" then
  751.                 Chat.Enabled = not Chat.Enabled
  752.         elseif key == "l" then
  753.                 ScreenGui.Enabled = not ScreenGui.Enabled
  754.         elseif key == teamkey then
  755.                 if tk then
  756.                         teamselect.Text = "Press "..string.upper(teamkey).." to toggle teamkill on."
  757.                         tk = false
  758.                 else
  759.                         teamselect.Text = "Press "..string.upper(teamkey).." to toggle teamkill off."
  760.                         tk = true
  761.                 end
  762.         elseif key == aimkey then
  763.                 if haaa and toggle == true then
  764.                         aimbot.Text = "Press "..string.upper(aimkey).." to toggle aimbot on."
  765.                         haaa = false
  766.                 elseif haaa == false then
  767.                         aimbot.Text = "Press "..string.upper(aimkey).." to toggle aimbot off."
  768.                         haaa = true
  769.                 end
  770.         elseif key == pathkey then
  771.                 if path then
  772.                         pathfind.Text = "Press "..string.upper(pathkey).." to toggle pathfinding on."
  773.                         path = false
  774.                 else
  775.                         pathfind.Text = "Press "..string.upper(pathkey).." to toggle pathfinding off."
  776.                         path = true
  777.                 end
  778.         elseif key == wallkey then
  779.                 if walls then
  780.                         walls = false
  781.                         wallselect.Text = "Press "..string.upper(wallkey).." to toggle aiming through walls on."
  782.                 else
  783.                         walls = true
  784.                         wallselect.Text = "Press "..string.upper(wallkey).." to toggle aiming through walls off."
  785.                 end
  786.         end
  787. end)
  788.  
  789. mou.KeyUp:connect(function(key)
  790.         if key == aimkey and toggle == false then
  791.                 aimbot.Text = "Press "..string.upper(aimkey).." to toggle aimbot on."
  792.                 haaa = false
  793.         end
  794. end)
  795.  
  796. local thatthing = nil
  797. local Camera = workspace.CurrentCamera
  798. local bestdist = nil
  799. local setpart = "Head"
  800. local selectedpart = "Head"
  801. local canseenearest = false
  802.  
  803. head.MouseButton1Click:connect(function()
  804.         righta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  805.         lefta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  806.         rightl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  807.         leftl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  808.         torso.BackgroundColor3 = Color3.fromRGB(255,0,0)
  809.         head.BackgroundColor3 = Color3.fromRGB(0,255,0)
  810.         setpart = "Head"
  811. end)
  812. torso.MouseButton1Click:connect(function()
  813.         righta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  814.         lefta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  815.         rightl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  816.         leftl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  817.         torso.BackgroundColor3 = Color3.fromRGB(0,255,0)
  818.         head.BackgroundColor3 = Color3.fromRGB(255,0,0)
  819.         setpart = "Torso"
  820. end)
  821. righta.MouseButton1Click:connect(function()
  822.         righta.BackgroundColor3 = Color3.fromRGB(0,255,0)
  823.         lefta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  824.         rightl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  825.         leftl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  826.         torso.BackgroundColor3 = Color3.fromRGB(255,0,0)
  827.         head.BackgroundColor3 = Color3.fromRGB(255,0,0)
  828.         setpart = "Right Arm"
  829. end)
  830. lefta.MouseButton1Click:connect(function()
  831.         righta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  832.         lefta.BackgroundColor3 = Color3.fromRGB(0,255,0)
  833.         rightl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  834.         leftl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  835.         torso.BackgroundColor3 = Color3.fromRGB(255,0,0)
  836.         head.BackgroundColor3 = Color3.fromRGB(255,0,0)
  837.         setpart = "Left Arm"
  838. end)
  839. rightl.MouseButton1Click:connect(function()
  840.         righta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  841.         lefta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  842.         rightl.BackgroundColor3 = Color3.fromRGB(0,255,0)
  843.         leftl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  844.         torso.BackgroundColor3 = Color3.fromRGB(255,0,0)
  845.         head.BackgroundColor3 = Color3.fromRGB(255,0,0)
  846.         setpart = "Right Leg"
  847. end)
  848. leftl.MouseButton1Click:connect(function()
  849.         righta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  850.         lefta.BackgroundColor3 = Color3.fromRGB(255,0,0)
  851.         rightl.BackgroundColor3 = Color3.fromRGB(255,0,0)
  852.         leftl.BackgroundColor3 = Color3.fromRGB(0,255,0)
  853.         torso.BackgroundColor3 = Color3.fromRGB(255,0,0)
  854.         head.BackgroundColor3 = Color3.fromRGB(255,0,0)
  855.         setpart = "Left Leg"
  856. end)
  857. local recentlyded = 0
  858. local lasttarg = nil
  859. game:GetService('RunService').Stepped:connect(function(time,thing)
  860.         thatthing = nil
  861.         canseenearest = false
  862.         selectedpart = setpart
  863.         Camera = workspace.CurrentCamera
  864.         bestdist = nil
  865.         if haaa or path then
  866.                 if walls == false then
  867.                         canseenearest = true
  868.                 end
  869.                 for i,v in pairs(game:GetService('Players'):GetChildren()) do
  870.                         if v ~= game:GetService('Players').LocalPlayer and v.Character and v.Character:FindFirstChild('Head') and v.Character:FindFirstChildOfClass('Humanoid') and v.Character:FindFirstChildOfClass('Humanoid').Health > 0 then
  871.                                 if tk == false and (sameteam(v,plr) == false or game:GetService('Players').LocalPlayer.Team == nil) then
  872.                                         if bestdist == nil or distance(game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame.p,v.Character.HumanoidRootPart.CFrame.p) < bestdist or (canseenearest == false and cansee(v.Character.Head)) then
  873.                                                 local gudguy = false
  874.                                                 for a,c in pairs(tms) do
  875.                                                         if v.TeamColor == c.TeamColor then
  876.                                                                 gudguy = true
  877.                                                         end
  878.                                                 end
  879.                                                 for a,c in pairs(plrs) do
  880.                                                         if v == c then
  881.                                                                 gudguy = true
  882.                                                         end
  883.                                                 end
  884.                                                 if gudguy == false then
  885.                                                         if canseenearest == true and cansee(v.Character.Head) then
  886.                                                                 thatthing = v
  887.                                                                 bestdist = distance(game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame.p,v.Character.HumanoidRootPart.CFrame.p)
  888.                                                         elseif canseenearest == false then
  889.                                                                 if cansee(v.Character.Head) then
  890.                                                                         canseenearest = true
  891.                                                                 end
  892.                                                                 thatthing = v
  893.                                                                 bestdist = distance(game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame.p,v.Character.HumanoidRootPart.CFrame.p)
  894.                                                         end
  895.                                                 end
  896.                                         end
  897.                                 elseif tk == true then
  898.                                         if bestdist == nil or distance(game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame.p,v.Character.HumanoidRootPart.CFrame.p) < bestdist or (canseenearest == false and cansee(v.Character.Head)) and (sameteam(v,plr) == false or game:GetService('Players').LocalPlayer.Team == nil) then
  899.                                                 local gudguy = false
  900.                                                 for a,c in pairs(plrs) do
  901.                                                         if v == c then
  902.                                                                 gudguy = true
  903.                                                         end
  904.                                                 end
  905.                                                 for a,c in pairs(tms) do
  906.                                                         if v.TeamColor == c.TeamColor then
  907.                                                                 gudguy = true
  908.                                                         end
  909.                                                 end
  910.                                                 if gudguy == false then
  911.                                                         if canseenearest == true and cansee(v.Character.Head) then
  912.                                                                 thatthing = v
  913.                                                                 bestdist = distance(game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame.p,v.Character.HumanoidRootPart.CFrame.p)
  914.                                                         elseif canseenearest == false then
  915.                                                                 if cansee(v.Character.Head) then
  916.                                                                         canseenearest = true
  917.                                                                 end
  918.                                                                 thatthing = v
  919.                                                                 bestdist = distance(game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame.p,v.Character.HumanoidRootPart.CFrame.p)
  920.                                                         end
  921.                                                 end
  922.                                         end
  923.                                 end
  924.                         end
  925.                 end
  926.                 if thatthing ~= nil and bestdist ~= nil and plr.Character:FindFirstChild('HumanoidRootPart') and thatthing.Character:FindFirstChild('HumanoidRootPart') then
  927.                         if  haaa then
  928.                                 if selectedpart == "Right Arm" then
  929.                                         if thatthing.Character:FindFirstChild('Right Arm') == nil then
  930.                                                 if thatthing.Character:FindFirstChild('RightLowerArm') then
  931.                                                         selectedpart = "RightLowerArm"
  932.                                                 else
  933.                                                         selectedpart = "Head"
  934.                                                 end
  935.                                         end
  936.                                 elseif selectedpart == "Left Arm" then
  937.                                         if thatthing.Character:FindFirstChild('Left Arm') == nil then
  938.                                                 if thatthing.Character:FindFirstChild('LeftLowerArm') then
  939.                                                         selectedpart = "LeftLowerArm"
  940.                                                 else
  941.                                                         selectedpart = "Head"
  942.                                                 end
  943.                                         end
  944.                                 elseif selectedpart == "Left Leg" then
  945.                                         if thatthing.Character:FindFirstChild('Left Leg') == nil then
  946.                                                 if thatthing.Character:FindFirstChild('LeftLowerLeg') then
  947.                                                         selectedpart = "LeftLowerLeg"
  948.                                                 else
  949.                                                         selectedpart = "Head"
  950.                                                 end
  951.                                         end
  952.                                 elseif selectedpart == "Right Leg" then
  953.                                         if thatthing.Character:FindFirstChild('Right Leg') == nil then
  954.                                                 if thatthing.Character:FindFirstChild('RightLowerLeg') then
  955.                                                         selectedpart = "RightLowerLeg"
  956.                                                 else
  957.                                                         selectedpart = "Head"
  958.                                                 end
  959.                                         end
  960.                                 elseif selectedpart == "Torso" then
  961.                                         if thatthing.Character:FindFirstChild('Torso') == nil then
  962.                                                 if thatthing.Character:FindFirstChild('UpperTorso') then
  963.                                                         selectedpart = "UpperTorso"
  964.                                                 else
  965.                                                         selectedpart = "Head"
  966.                                                 end
  967.                                         end
  968.                                 end
  969.                                 local good = true
  970.                                 if lasttarg and lasttarg:FindFirstChildOfClass('Humanoid') and lasttarg:FindFirstChildOfClass('Humanoid').Health <= 0 then
  971.                                         recentlyded = 20
  972.                                         lasttarg = nil
  973.                                 end
  974.                                 if recentlyded > 0 then
  975.                                         good = false
  976.                                         recentlyded = recentlyded - 1
  977.                                 else
  978.                                         good = true
  979.                                 end
  980.                                 if thatthing and thatthing.Character and Camera and good then
  981.                                         lasttarg = thatthing.Character
  982.                                 end
  983.                                 if distance(game:GetService('Players').LocalPlayer.Character.HumanoidRootPart.CFrame.p,thatthing.Character[selectedpart].CFrame.p,true) > 1029 then
  984.                                         for i=1,7 do
  985.                                                 if thatthing and thatthing.Character and Camera and good == true then
  986.                                                         Camera.CFrame = Camera.CFrame:lerp(CFrame.new(Camera.CFrame.p,thatthing.Character[selectedpart].CFrame.p),i/5)
  987.                                                 end
  988.                                                 wait()
  989.                                         end
  990.                                 else
  991.                                         Camera.CFrame = CFrame.new(Camera.CFrame.p,thatthing.Character[selectedpart].CFrame.p)
  992.                                 end
  993.                         end
  994.                 end
  995.         end
  996. end)
  997.  
  998. game:GetService('Players').PlayerRemoving:connect(function(pla)
  999.         for i,v in pairs(plrs) do
  1000.                 if v == pla then
  1001.                         table.remove(plrs,i)
  1002.                 end
  1003.         end
  1004. end)
  1005. game:GetService('Teams').ChildRemoved:connect(function(child)
  1006.         for i,v in pairs(tms) do
  1007.                 if v == child then
  1008.                         table.remove(tms,i)
  1009.                 end
  1010.         end
  1011. end)
  1012.  
  1013. while true do
  1014.         for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
  1015.                 if v.Name == "PATH BOI" then
  1016.                         v:Destroy()
  1017.                 end
  1018.         end
  1019.         for i,v in pairs(players:GetChildren()) do
  1020.                 v:Destroy()
  1021.         end
  1022.         for i,v in pairs(teams:GetChildren()) do
  1023.                 v:Destroy()
  1024.         end
  1025.         local thatnum = 0
  1026.         for i,v in pairs(game:GetService('Teams'):GetChildren()) do
  1027.                 if v.TeamColor ~= game:GetService('Players').LocalPlayer.TeamColor then
  1028.                 local team = Instance.new('TextButton',teams)
  1029.                 if thatnum > 4 then
  1030.                         teams.CanvasSize = UDim2.new(0,0,0,(thatnum*(teams.AbsoluteSize.Y/5))+(teams.AbsoluteSize.Y/5))
  1031.                 else
  1032.                         teams.CanvasSize = UDim2.new(0,0,0,0)
  1033.                 end
  1034.                 team.Name = v.Name
  1035.                 team.TextScaled = true
  1036.                 team.Text = v.Name
  1037.                 team.Size = UDim2.new(1,0,0,teams.AbsoluteSize.Y/5)
  1038.                 team.Position = UDim2.new(0,0,0,(thatnum*(teams.AbsoluteSize.Y/5)))
  1039.                 team.BackgroundTransparency = 1
  1040.                 team.TextColor3 = Color3.new(1,0,0)
  1041.                 for c,a in pairs(tms) do
  1042.                         if a == v then
  1043.                                 team.TextColor3 = Color3.new(0,1,0)
  1044.                         end
  1045.                 end
  1046.                 team.MouseButton1Click:connect(function()
  1047.                         local found = false
  1048.                         for c,a in pairs(tms) do
  1049.                                 if a == v then
  1050.                                         table.remove(tms,c)
  1051.                                         found = true
  1052.                                         team.TextColor3 = Color3.new(1,0,0)
  1053.                                 end
  1054.                         end
  1055.                         if found == false then
  1056.                                 table.insert(tms,v)
  1057.                                 team.TextColor3 = Color3.new(0,1,0)
  1058.                         end
  1059.                 end)
  1060.                 thatnum = thatnum+1
  1061.                 end
  1062.         end
  1063.         local thatnum2 = 0
  1064.         for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1065.                 if v ~= game:GetService('Players').LocalPlayer then
  1066.                 local team = Instance.new('TextButton',players)
  1067.                 if thatnum2 > 4 then
  1068.                         players.CanvasSize = UDim2.new(0,0,0,(thatnum2*(players.AbsoluteSize.Y/5))+(players.AbsoluteSize.Y/5))
  1069.                 else
  1070.                         players.CanvasSize = UDim2.new(0,0,0,0)
  1071.                 end
  1072.                 team.Name = v.Name
  1073.                 team.TextScaled = true
  1074.                 team.Text = v.Name
  1075.                 team.Size = UDim2.new(1,0,0,players.AbsoluteSize.Y/5)
  1076.                 team.Position = UDim2.new(0,0,0,(thatnum2*(players.AbsoluteSize.Y/5)))
  1077.                 team.BackgroundTransparency = 1
  1078.                 team.TextColor3 = Color3.new(1,0,0)
  1079.                 for c,a in pairs(plrs) do
  1080.                         if a == v then
  1081.                                 team.TextColor3 = Color3.new(0,1,0)
  1082.                         end
  1083.                 end
  1084.                 team.MouseButton1Click:connect(function()
  1085.                         local found = false
  1086.                         for c,a in pairs(plrs) do
  1087.                                 if a == v then
  1088.                                         table.remove(plrs,c)
  1089.                                         found = true
  1090.                                         team.TextColor3 = Color3.new(1,0,0)
  1091.                                 end
  1092.                         end
  1093.                         if found == false then
  1094.                                 table.insert(plrs,v)
  1095.                                 team.TextColor3 = Color3.new(0,1,0)
  1096.                         end
  1097.                 end)
  1098.                 thatnum2 = thatnum2+1
  1099.                 end
  1100.         end
  1101.         if path then
  1102.         if plr.Character and plr.Character:FindFirstChild('HumanoidRootPart') and thatthing and thatthing.Character and thatthing.Character:FindFirstChild('HumanoidRootPart') then
  1103.                 local pat = game:GetService('PathfindingService'):ComputeSmoothPathAsync(plr.Character.HumanoidRootPart.Position,thatthing.Character.HumanoidRootPart.Position,512)
  1104.                 if pat.Status == Enum.PathStatus.Success or pat.Status == Enum.PathStatus.ClosestOutOfRange then
  1105.                         local pa = pat:GetPointCoordinates()
  1106.                         local fol = Instance.new('Folder',workspace.CurrentCamera)
  1107.                         fol.Name = "PATH BOI"
  1108.                         local first = nil
  1109.                         for i,v in pairs(pa) do
  1110.                                 if first ~= nil then
  1111.                                         local pathfindpart = Instance.new('Part',fol)
  1112.                                         local dist,place = getdatray(first,v)
  1113.                                         pathfindpart.BrickColor = BrickColor.new('Really red')
  1114.                                         pathfindpart.Size = Vector3.new(0.2,0.2,dist)
  1115.                                         pathfindpart.Transparency = 0.5
  1116.                                         pathfindpart.Material = Enum.Material.Neon
  1117.                                         pathfindpart.Anchored = true
  1118.                                         pathfindpart.CanCollide = false
  1119.                                         pathfindpart.CFrame = place
  1120.                                 end
  1121.                         first = v
  1122.                         end
  1123.                 end
  1124.         end
  1125.         end
  1126.         wait(1)
  1127. end
  1128.  
  1129.  
  1130. end