Isaiah20Yt

Aimbot gui Roblox Arsenal

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