Advertisement
Guest User

aim bot for arsenal

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