tazerzx

Untitled

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