Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.75 KB | None | 0 0
  1. --[[
  2.  
  3. __/\\\\____________/\\\\_________________________________________________________
  4. _\/\\\\\\________/\\\\\\_________________________________________________________
  5. _\/\\\//\\\____/\\\//\\\_________________________________________________________
  6. _\/\\\\///\\\/\\\/_\/\\\_____/\\\\\_____/\\/\\\\\\\___/\\\\\\\\\\_____/\\\\\\\\__
  7. _\/\\\__\///\\\/___\/\\\___/\\\///\\\__\/\\\/////\\\_\/\\\//////____/\\\/////\\\_
  8. _\/\\\____\///_____\/\\\__/\\\__\//\\\_\/\\\___\///__\/\\\\\\\\\\__/\\\\\\\\\\\__
  9. _\/\\\_____________\/\\\_\//\\\__/\\\__\/\\\_________\////////\\\_\//\\///////___
  10. _\/\\\_____________\/\\\__\///\\\\\/___\/\\\__________/\\\\\\\\\\__\//\\\\\\\\\\_
  11. _\///______________\///_____\/////_____\///__________\//////////____\//////////__
  12.  
  13. FIRST PERSON SHOOTERS
  14.  
  15. ------------------------
  16.  
  17. -: CHANGELOG :-
  18. ------------------------
  19. v1.21:
  20. - Chams Fix
  21.  
  22. v1.4:
  23. - Fullbright
  24.  
  25. v1.75
  26. - Name + Distance ESP
  27. - Aimbot shows on every game but PF
  28. to prevent noobs from getting banned.
  29.  
  30.  
  31. --]]
  32.  
  33. local Run = game:GetService('RunService');
  34. local World = game:GetService('Workspace');
  35. local Input = game:GetService('UserInputService');
  36. local Lighting = game:GetService("Lighting");
  37. local Players = game:GetService('Players');
  38. local Player = Players['LocalPlayer'];
  39.  
  40. local Keys = {}
  41. local Misc = {
  42. CharFunctions = getmetatable(newproxy(true));
  43. GUIColors = {
  44. On = Color3.fromRGB(46, 105, 132);
  45. Off = Color3.new(.38, .38, .38);
  46. };
  47.  
  48. ChamsColors = {
  49. {'White', Color3.new(1, 1, 1)};
  50. {'Black', Color3.new(0, 0, 0)};
  51. {'Red', Color3.new(1, 0, 0)};
  52. {'Green', Color3.new(0, 1, 0)};
  53. {'Blue', Color3.new(0, 0, 1)};
  54. {'Purple', Color3.new(0.65, 0, 0.65)};
  55. {'Yellow', Color3.new(1, 1, 0)};
  56. {'Grey', Color3.new(0.8, 0.8, 0.8)};
  57. }
  58. }
  59.  
  60. local function GetFunc(t, i)
  61. for __, ___ in next, (t) do
  62. if string.lower(i):match(__:lower()) then
  63. return ___, __
  64. end
  65. end
  66. end
  67.  
  68. local function GetColor(t, i)
  69. for __, ___ in next, (t) do
  70. if (___[1] == i) then
  71. return ___, __
  72. elseif (___[2] == i) then
  73. return ___, __
  74. end
  75. end
  76. end
  77.  
  78. local Settings = {
  79. {'Menu', false, Enum.KeyCode.Delete};
  80. {'Team Chams [\'COLOR\']', true, 'Toggle'};
  81. {'Enemy Chams [\'COLOR\']', true, 'Toggle'};
  82. {'Chams Transparency', false, '0'};
  83. {'Fullbright', true, 'MAX'};
  84. {'ESP', true, '<-'};
  85. (game.PlaceId ~= 292439477 and {'Aimbot', true, '<-'}) or nil;
  86. }
  87.  
  88. ------------ [[ GUI SPAWN ]] ------------
  89. FormAssets = function()
  90. ------ ERROR MAGIC ------
  91. local __ERROR__ = Instance.new('BindableEvent')
  92. __ERROR__['Event']:Connect(error)
  93.  
  94. --------- CREATE FUNCTION ---------
  95. local create = function(class, parent)
  96. local instance = Instance.new(class);
  97. return function(props)
  98. for property, value in next, (props) do
  99. if (property ~= 'Parent') and (typeof(value) ~= 'Instance') then
  100. local suc, err = pcall(function()
  101. instance[property] = value
  102. end)
  103. if not suc then __ERROR__:Fire('[Script->Asset]: ' .. err) end
  104.  
  105. elseif (property == 'Parent') then
  106. parent = value
  107. end
  108. end
  109.  
  110. if parent and (typeof(parent) == 'Instance') then
  111. instance['Parent'] = parent
  112. end
  113.  
  114. return instance
  115. end
  116. end
  117.  
  118. -------------------------------------
  119. -------------------------------------
  120. -- SOME THINGS MAY BE OUT OF ORDER --
  121. ----(INSTANCE RELATED PROPERTIES)----
  122. -------------(UNLIKELY)--------------
  123. -------------------------------------
  124. -------------------------------------
  125.  
  126. local Main = create('ScreenGui'){
  127. Name = "FPS Hacks - Menu"
  128. }
  129.  
  130. local Folder = create('Folder', Main){
  131. Name = 'Chams'
  132. }
  133.  
  134. local Folder1 = create('Folder', Folder){
  135. Name = 'Team'
  136. }
  137.  
  138. local Folder2 = create('Folder', Folder){
  139. Name = 'Enemy'
  140. }
  141.  
  142. local Folder3 = create('Folder', Main){
  143. Name = 'ESP'
  144. }
  145.  
  146. local Frame = create('Frame', Main){
  147. Name = "Main";
  148. BackgroundColor3 = Color3.new(1, 1, 1);
  149. BackgroundTransparency = 1;
  150. Position = UDim2.new(0.5, 0, 0.5, 0);
  151. Size = UDim2.new(0, 250, 0, 190);
  152. Draggable = true;
  153. Active = true;
  154. AnchorPoint = Vector2.new(0.5, 0.5);
  155. Transparency = 1
  156. }
  157.  
  158. local TextLabel = create('TextLabel', Frame){
  159. Name = "Title";
  160. BackgroundColor3 = Color3.new(0.180392, 0.411765, 0.517647);
  161. BorderSizePixel = 0;
  162. Size = UDim2.new(1, 0, 0, 35);
  163. Text = "FPS Hacks";
  164. TextColor3 = Color3.new(0.866667, 0.843137, 0.843137);
  165. Font = Enum.Font.SciFi;
  166. FontSize = Enum.FontSize.Size28;
  167. TextWrapped = true
  168. }
  169.  
  170. local ScrollingFrame = create('ScrollingFrame', Frame){
  171. Name = "Buttons";
  172. BackgroundColor3 = Color3.new(1, 1, 1);
  173. BackgroundTransparency = 1;
  174. BorderSizePixel = 0;
  175. Position = UDim2.new(0.5, 0, 0, 40);
  176. CanvasSize = UDim2.new(0, 0, 0, 0);
  177. Size = UDim2.new(1, 0, 0, 260);
  178. AnchorPoint = Vector2.new(0.5, 0);
  179. Transparency = 1
  180. }
  181.  
  182. local Frame1 = create('Frame'){
  183. BackgroundColor3 = Color3.new(1, 1, 1);
  184. BackgroundTransparency = 1;
  185. BorderSizePixel = 0;
  186. Position = UDim2.new(0, 0, 0, 1);
  187. Selectable = true;
  188. Size = UDim2.new(1, 0, 0, 25);
  189. ClipsDescendants = true;
  190. Transparency = 1
  191. }
  192.  
  193. local TextLabel1 = create('TextButton', Frame1){
  194. Name = "Text";
  195. BackgroundColor3 = Color3.new(1, 1, 1);
  196. BorderColor3 = Color3.new(0.180392, 0.411765, 0.517647);
  197. Position = UDim2.new(0.100000001, 0, 0, 0);
  198. Size = UDim2.new(0.600000024, 0, 1, 0);
  199. Text = "Example";
  200. TextColor3 = Color3.new(0.180392, 0.411765, 0.517647);
  201. Font = Enum.Font.SciFi;
  202. FontSize = Enum.FontSize.Size14
  203. }
  204.  
  205. local Frame2 = create('Frame', Frame1){
  206. Name = "Status";
  207. BackgroundColor3 = Color3.new(0, 1, 0);
  208. BorderSizePixel = 0;
  209. Position = UDim2.new(0.0250000004, 0, 0.5, 0);
  210. Size = UDim2.new(0, 7, 0, 7);
  211. Style = Enum.FrameStyle.DropShadow;
  212. AnchorPoint = Vector2.new(0, 0.5)
  213. }
  214.  
  215. local TextButton = create('TextButton', Frame1){
  216. Name = "Key";
  217. BackgroundColor3 = Color3.new(0.180392, 0.411765, 0.517647);
  218. BackgroundTransparency = 0.5;
  219. BorderSizePixel = 0;
  220. Position = UDim2.new(0.699999988, 0, 0, 0);
  221. Size = UDim2.new(0.300000012, 0, 1, 0);
  222. Text = "[EXAMPLE]";
  223. TextColor3 = Color3.new(0.839216, 0.839216, 0.839216);
  224. Font = Enum.Font.SciFi;
  225. FontSize = Enum.FontSize.Size14;
  226. TextStrokeColor3 = Color3.new(0.380392, 0.380392, 0.380392);
  227. TextStrokeTransparency = 0;
  228. Transparency = 0.5
  229. }
  230.  
  231. local UIListLayout = create('UIListLayout', ScrollingFrame){
  232. Padding = UDim.new(0, 4);
  233. HorizontalAlignment = Enum.HorizontalAlignment.Center
  234. }
  235.  
  236. local UIPadding = create('UIPadding', ScrollingFrame){}
  237.  
  238. local ESP_GUI = create('BillboardGui'){
  239. Active = true;
  240. AlwaysOnTop = true;
  241. StudsOffsetWorldSpace = Vector3.new(0, 4, 0);
  242. Size = UDim2.new(0, 100, 0, 50)
  243. }
  244.  
  245. create('TextLabel', ESP_GUI){
  246. Name = "Target";
  247. BackgroundColor3 = Color3.new(1, 1, 1);
  248. BackgroundTransparency = 1;
  249. BorderSizePixel = 0;
  250. Size = UDim2.new(1, 0, 0, 20);
  251. Text = "";
  252. TextColor3 = Color3.new(1, 0, 0);
  253. Font = Enum.Font.Garamond;
  254. FontSize = Enum.FontSize.Size14;
  255. TextScaled = true;
  256. TextStrokeTransparency = 0.20000000298023;
  257. TextWrapped = true
  258. }
  259.  
  260. create('TextLabel', ESP_GUI){
  261. Name = "Dist";
  262. BackgroundColor3 = Color3.new(1, 1, 1);
  263. BackgroundTransparency = 1;
  264. Position = UDim2.new(0, 0, 0.349999994, 0);
  265. Size = UDim2.new(1, 0, 0, 20);
  266. Text = "";
  267. TextColor3 = Color3.new(1, 0, 0.498039);
  268. Font = Enum.Font.Garamond;
  269. FontSize = Enum.FontSize.Size12;
  270. TextScaled = true;
  271. TextStrokeTransparency = 0.20000000298023;
  272. TextWrapped = true
  273. }
  274.  
  275. return create, Main, Frame1, Folder, Folder3, ESP_GUI
  276. end
  277.  
  278. local Create, Menu, Button, Chams, ESPF, Billboard = FormAssets()
  279. local TDB, EDB, ESPD;
  280.  
  281. local Functions = {
  282. ['Menu'] = function()
  283. Menu['Enabled'] = not (Menu['Enabled']);
  284. end;
  285.  
  286. ['ESP'] = function()
  287. if ESPD then return end
  288. ESPD = true
  289. Settings['ESP'] = not (Settings['ESP'])
  290. if Settings['ESP'] then
  291. Misc['CharFunctions']
  292. ['ESP'] = function(char)
  293. local Target = Players:GetPlayerFromCharacter(char)
  294. local HRP = char:FindFirstChild('HumanoidRootPart')
  295. if not Target or (Target == Player) or not HRP then return end
  296.  
  297. local Folder = ESPF:FindFirstChild(Target['Name'])
  298. or Create('Folder', ESPF){Name = Target['Name']}
  299.  
  300. local Bill = Billboard:Clone()
  301. Bill.Target.Text = Target['Name']
  302. Bill.Adornee = HRP
  303. Bill.Parent = Folder
  304.  
  305. spawn(function()
  306. while HRP and wait() and Settings['ESP'] do
  307. local CHRP = (Player.Character or Player.CharacterAdded:wait()):FindFirstChild('HumanoidRootPart')
  308. if CHRP then
  309. Bill.Dist.Text = math.floor((HRP.Position - CHRP.Position).magnitude)
  310. end
  311. end
  312. end)
  313. end
  314. elseif Misc['CharFunctions']['ESP'] then
  315. Misc['CharFunctions']['ESP'] = nil
  316. ESPF:ClearAllChildren()
  317. end
  318. ESPD = false
  319. end,
  320.  
  321. ['Team Chams'] = function()
  322. if TDB then return end
  323. TDB = true
  324. Settings['TCO'] = not (Settings['TCO'])
  325. if Settings['TCO'] then
  326. Misc['CharFunctions']
  327. ['TCCH'] = function(char)
  328. local Target = Players:GetPlayerFromCharacter(char)
  329. if (Target == Player) or (Target.TeamColor ~= Player.TeamColor) then return end
  330.  
  331. local Folder = Chams['Team']:FindFirstChild(Target['Name'])
  332. or Create('Folder', Chams['Team']){Name = Target['Name']}
  333.  
  334. for __, part in next, (char:GetChildren()) do
  335. if part:IsA('BasePart') then
  336. Create('BoxHandleAdornment', Folder)
  337. {
  338. Name = part.Name .. '_CHAM';
  339. Color3 = Settings['TCC'][2];
  340. AlwaysOnTop = true;
  341. Transparency = Settings['CT'];
  342. Visible = true;
  343. ZIndex = 10;
  344.  
  345. Size = (part['Name'] == 'Head' and Vector3.new(1.25, 1.3, 1.25))
  346. or (Vector3.new(.5, .5, .5) + part.Size)
  347. }['Adornee'] = part
  348. end
  349. end
  350. end
  351. elseif Misc['CharFunctions']['TCCH'] then
  352. Misc['CharFunctions']['TCCH'] = nil
  353. Chams['Team']:ClearAllChildren()
  354. end
  355. TDB = false
  356. end;
  357.  
  358. ['Enemy Chams'] = function()
  359. if EDB then return end
  360. EDB = true
  361. Settings['ECO'] = not (Settings['ECO'])
  362. if Settings['ECO'] then
  363. Misc['CharFunctions']
  364. ['ECCH'] = function(char)
  365. local Target = Players:GetPlayerFromCharacter(char)
  366. if (Target == Player) or (Target.TeamColor == Player.TeamColor) then return end
  367.  
  368. local Folder = Chams['Enemy']:FindFirstChild(Target['Name'])
  369. or Create('Folder', Chams['Enemy']){Name = Target['Name']}
  370.  
  371. for __, part in next, (char:GetChildren()) do
  372. if part:IsA('BasePart') then
  373. Create('BoxHandleAdornment', Folder)
  374. {
  375. Name = part.Name .. '_CHAM';
  376. Color3 = Settings['ECC'][2];
  377. AlwaysOnTop = true;
  378. Transparency = Settings['CT'];
  379. Visible = true;
  380. ZIndex = 10;
  381.  
  382. Size = (part['Name'] == 'Head' and Vector3.new(1.25, 1.3, 1.25))
  383. or (Vector3.new(.5, .5, .5) + part.Size)
  384. }['Adornee'] = part
  385. end
  386. end
  387. end
  388. elseif Misc['CharFunctions']['ECCH'] then
  389. Misc['CharFunctions']['ECCH'] = nil
  390. Chams['Enemy']:ClearAllChildren()
  391. end
  392. EDB = false
  393. end;
  394.  
  395. ['Chams Transparency'] = function(t)
  396. if t then
  397. local Trans = Settings['CT']
  398. Settings['CT'] = (Trans < .8 and Trans + (1/10)) or 0
  399. end
  400.  
  401. local TeamCham = Chams['Team']:GetChildren()
  402. local EnemyCham = Chams['Enemy']:GetChildren()
  403.  
  404. for __, object in next, (TeamCham) do
  405. for __, bha in next, (object:GetChildren()) do
  406. bha.Transparency = Settings['CT']
  407. bha.Color3 = Settings['TCC'][2]
  408. end
  409. end
  410.  
  411. for __, object in next, (EnemyCham) do
  412. for __, bha in next, (object:GetChildren()) do
  413. bha.Transparency = Settings['CT']
  414. bha.Color3 = Settings['ECC'][2]
  415. end
  416. end
  417.  
  418. Menu['Main']['Buttons']['Frans']['Key'].Text = '[' .. tostring(Settings['CT']) .. ']'
  419. end;
  420.  
  421. ['Fullbright'] = function(Toggle, TextBox)
  422. local Fullbright = Settings.Fullbright
  423. if Toggle then Fullbright.On = not (Fullbright.On); end
  424.  
  425. local function Handle()
  426. local Setting = Fullbright.Options[Fullbright.Current]
  427. local Settings = Fullbright.OptionDefs[Setting]
  428.  
  429.  
  430. TextBox['Text'] = '[' .. Setting .. ']'
  431. Lighting.Ambient = Settings.InAmbience;
  432. Lighting.OutdoorAmbient = Settings.OutAmbience;
  433. Lighting.Brightness = Settings.Brightness;
  434. Lighting.FogStart = Settings.Fog;
  435. Lighting.FogEnd = Settings.Fog;
  436. end
  437.  
  438. if (not Fullbright.On) then
  439. Fullbright.Current = 3
  440. end
  441.  
  442. Handle()
  443. end;
  444.  
  445. ['Aimbot'] = function(l)
  446. l:Destroy()
  447.  
  448. local IgnorePlayersNamed = {A1_exe=true} -- Name = true or false
  449. --[[
  450. [J] - To go down the list.
  451. [U] - To go up the list.
  452. [H] - To toggle that item in the list.
  453. [RMB] - To aim at your target using the current settings. (THIS UPDATES IN LIVE TIME SO YOU DON'T HAVE TO STOP AIMING FOR IT TO TAKE EFFECT)
  454. --]]
  455.  
  456. local services = setmetatable({
  457. World = game:GetService('Workspace');
  458. Players = game:GetService('Players');
  459. Input = game:GetService('UserInputService');
  460. Run = game:GetService('RunService');
  461. UI = game:GetService('StarterGui');
  462. },{
  463. __index = function(tab,index)
  464. local serv
  465. local ran,err = pcall(function() serv=game:service(index) end)
  466. if ran then
  467. tab[index] = serv
  468. return serv
  469. end
  470. end
  471. })
  472.  
  473. local cre = Create
  474. local ResizeUI = function(ui,downscale,byclass)
  475. if not rawequal(ui['ClassName'],'ScrollingFrame') then return end
  476.  
  477. local count = 0;
  478. for __, asset in next, (ui:GetChildren()) do
  479. if rawequal(asset['ClassName'],byclass) then
  480. count = count + 1
  481. end
  482. end
  483.  
  484. ui['CanvasSize'] = UDim2.new(ui.CanvasSize.X.Scale,ui.CanvasSize.X.Offset,ui.CanvasSize.Y.Scale,downscale*count)
  485. end
  486.  
  487. local wfc, ffc, ffoc, cast, ray = services.World.WaitForChild, services.World.FindFirstChild, services.World.FindFirstChildOfClass, services.World.FindPartOnRayWithIgnoreList, Ray.new
  488. local wfcoc = function(p,class)
  489. local obj
  490. repeat services.Run.RenderStepped:wait()
  491. obj = p:FindFirstChildOfClass(class)
  492. until obj
  493. return obj
  494. end
  495.  
  496. local Client = services.Players.LocalPlayer
  497. local ClientUI = wfc(Client,'PlayerGui')
  498. local ClientMouse = Client:GetMouse()
  499. local ClientModel = Client.Character or Client.CharacterAdded:wait()
  500. local ClientCamera = services.World.CurrentCamera
  501. local ClientHumanoid = wfcoc(ClientModel,'Humanoid')
  502. local ClientActiveUI;
  503.  
  504. local status = {
  505. Enabled = false,
  506. TeamCheck = false,
  507. HeadsOnly = false,
  508. RayCheck = true,
  509. AutoAim = false,
  510. }
  511.  
  512. local function toggle(button)
  513. local option, val = button['Text']:match('(.*):%s*(.*)')
  514. status[option] = not status[option]
  515.  
  516. if status[option] then
  517. button.TextColor3 = Color3.fromRGB(0,255,0)
  518. else
  519. button.TextColor3 = Color3.fromRGB(255,0,0)
  520. end
  521. button.Text = option .. ': ' .. tostring(status[option])
  522. end
  523.  
  524. local selection = {}
  525. local select_pos = 1
  526. local current_pos = 0
  527. local __ = function()
  528. if ffc(game.CoreGui, '___') then return end
  529.  
  530. local GUI = cre('ScreenGui',game:GetService('CoreGui')){
  531. Name = '___';
  532. }
  533.  
  534. local Frame = cre('ScrollingFrame',GUI){
  535. BackgroundTransparency = 1,
  536. BorderSizePixel = 0,
  537. Name = 'Options',
  538. Position = UDim2.new(.8,0,.915,0),
  539. Size = UDim2.new(.2,0,0,30),
  540. ZIndex = 10,
  541. ClipsDescendants = true,
  542. CanvasSize = UDim2.new(0,0,0,0),
  543. ScrollBarThickness = 0,
  544. ScrollingEnabled = false,
  545. }
  546.  
  547. local UILL = cre('UIListLayout',Frame){
  548. Name = 'LayoutHandler',
  549. FillDirection = 'Vertical',
  550. HorizontalAlignment = 'Center',
  551. SortOrder = 'LayoutOrder',
  552. VerticalAlignment = 'Top'
  553. }
  554.  
  555. local Template = cre('TextButton',nil){
  556. BackgroundTransparency = 1,
  557. BorderSizePixel = 0,
  558. Name = 'Template',
  559. Size = UDim2.new(.9,0,0,30),
  560. Font = 'SciFi',
  561. Text = '',
  562. TextColor3 = Color3.fromRGB(255,255,255),
  563. TextScaled = true,
  564. TextWrapped = true,
  565. }
  566.  
  567. local TSC = cre('UISizeConstraint',Template){
  568. Name = 'TemplateSizeConstraint',
  569. MaxSize = Vector2.new(math.huge,30),
  570. }
  571.  
  572. Frame['ChildAdded']:connect(function()
  573. ResizeUI(Frame,30,'TextButton')
  574. end)
  575.  
  576. local sel_pos = 0
  577. for option, val in next, status do
  578. local tp = Template:Clone()
  579.  
  580. tp.Name = option
  581. tp.Text = option .. ': ' .. tostring(val)
  582.  
  583. if status[option] then
  584. tp.TextColor3 = Color3.fromRGB(0,255,0)
  585. else
  586. tp.TextColor3 = Color3.fromRGB(255,0,0)
  587. end
  588.  
  589. sel_pos = sel_pos + 1
  590. selection[sel_pos] = tp
  591. tp.Parent = Frame
  592. end
  593.  
  594. Frame.CanvasPosition = Vector2.new(0, current_pos)
  595. return Frame
  596. end
  597.  
  598. Client['CharacterAdded']:connect(function(c)
  599. ClientModel = c
  600. ClientHumanoid = wfcoc(ClientModel,'Humanoid')
  601. ClientActiveUI.Parent.Parent = nil
  602. ClientActiveUI = coroutine.wrap(__)()
  603. end)
  604. ClientActiveUI = coroutine.wrap(__)()
  605.  
  606. local right_down, keylogs, inputlogs = nil, {}, {}
  607. services.Input.InputBegan:connect(function(input, procc)
  608. keylogs[input.KeyCode],inputlogs[input.UserInputType] = true, true;
  609.  
  610. if not ClientActiveUI then return end
  611. if keylogs[Enum.KeyCode.U] and current_pos >= 30 then
  612. select_pos = select_pos - 1
  613. current_pos = current_pos - 30
  614. ClientActiveUI.CanvasPosition = Vector2.new(0,current_pos)
  615.  
  616. elseif keylogs[Enum.KeyCode.J] and current_pos < ClientActiveUI.CanvasSize.Y.Offset - 30 then
  617. select_pos = select_pos + 1
  618. current_pos = current_pos + 30
  619. ClientActiveUI.CanvasPosition = Vector2.new(0,current_pos)
  620.  
  621. elseif keylogs[Enum.KeyCode.H] then
  622. if selection[select_pos] then
  623. toggle(selection[select_pos])
  624. end
  625. end
  626. end)
  627. services.Input.InputEnded:connect(function(input, procc)
  628. keylogs[input.KeyCode],inputlogs[input.UserInputType] = false, false;
  629. end)
  630.  
  631. local function GetPlayerFromCharacter(mod)
  632. if not mod:IsA('Model') then return end
  633.  
  634. for __, client in next, services.Players:GetPlayers() do
  635. if rawequal(string.lower(client['Name']):sub(1,#mod['Name']),mod['Name']:lower()) then
  636. return client, client['Name']
  637. end
  638. end
  639. return nil, 'N/A'
  640. end
  641.  
  642. local function Search()
  643. local t = {}
  644. for __, child in next, services.World:GetChildren() do
  645. local UserFromCharacter = GetPlayerFromCharacter(child)
  646. if UserFromCharacter then
  647. if child:IsA('Model') and not rawequal(UserFromCharacter,Client) then
  648. local h = ffoc(child,'Humanoid')
  649. if h and h.Health > 0 then
  650. table.insert(t, {child,UserFromCharacter})
  651. end
  652. end
  653. end
  654. end
  655. return t
  656. end
  657.  
  658. local function cast_ray(p0,p1,blacklist)
  659. local Part
  660. local __=0
  661. repeat
  662. __=__+1
  663. local cond=(p1-p0).magnitude < 999
  664. Part,p0=cast(workspace,ray(p0,cond and p1-p0 or (p1-p0).unit*999),blacklist)
  665. if Part then
  666. if Part.CanCollide==false or Part.Transparency==1 then
  667. blacklist[#blacklist+1]=Part
  668. Part=nil
  669. end
  670. elseif cond or __ > 15 then
  671. break
  672. end
  673. until Part
  674. return Part,p0
  675. end
  676.  
  677. services.Run.RenderStepped:connect(function()
  678. local Storage = {}
  679. if status['Enabled'] and (inputlogs[Enum.UserInputType.MouseButton2] or status['AutoAim']) then
  680. Storage = Search()
  681.  
  682. local dot, face = -1
  683. for __, info in next, (Storage) do
  684. local h = ffc(info[1],'Humanoid')
  685. local skip;
  686.  
  687. if not inputlogs[Enum.UserInputType.MouseButton2] and not status['AutoAim'] then return end
  688. if not info[1] or not info[2] or IgnorePlayersNamed[info[2]['Name']] or ffoc(info[1],'ForceField') then skip = true end
  689. if not ffc(info[1],'HumanoidRootPart') then skip = true end
  690.  
  691. if h and h['Health'] > 0 then
  692. if status['TeamCheck'] then
  693. if Client['TeamColor'] == info[2]['TeamColor'] then
  694. skip = true
  695. end
  696. end
  697.  
  698. if not skip then
  699. local cc = ClientCamera.CFrame
  700. local pos = status['HeadsOnly'] and info[1]['Head'].CFrame.p or info[1]['HumanoidRootPart'].Position
  701. local HitPart=cast_ray(cc.p,pos,{ClientCamera,ClientModel})
  702.  
  703. if not (status['RayCheck'] and HitPart) or info[1]:IsAncestorOf(HitPart) then
  704. local m = (pos-cc.p).unit:Dot(cc.lookVector)
  705. if rawequal(m,m) and m > dot then
  706. dot, face= m, pos
  707. end
  708. end
  709. end
  710. end
  711. end
  712. if face then
  713. ClientCamera.CFrame = CFrame.new(ClientCamera.CFrame.p,face) * CFrame.new(0,0,0.5)
  714. end
  715. end
  716. end)
  717.  
  718. end
  719. }
  720.  
  721. Settings = (function()
  722. local NewSettings = {
  723. --- Chams ---
  724. CT = 0; -- Transparency
  725. ESP = false; -- ESP
  726. TCO = false; -- Team Chams On
  727. ECO = false; -- Enemy Chams On
  728. TCC = GetColor(Misc.ChamsColors, 'Grey'); -- Current Team Chams Color
  729. ECC = GetColor(Misc.ChamsColors, 'Red'); -- Current Enemy Chams Color
  730.  
  731. --- Fullbright ---
  732. Fullbright = {
  733. On = false;
  734. Current = 1;
  735. Options = {'Max','Half','Default'};
  736. OptionDefs = {
  737. Max = {
  738. Fog = 1000000;
  739. Brightness = 10;
  740. InAmbience = Color3.new(1, 1, 1);
  741. OutAmbience = Color3.new(1, 1, 1);
  742. };
  743. Half = {
  744. Fog = 250;
  745. Brightness = 1.5;
  746. InAmbience = Color3.new(0.6, 0.6, 0.6);
  747. OutAmbience = Color3.new(0.6, 0.6, 0.6);
  748. };
  749. Default = {
  750. Fog = Lighting.FogEnd;
  751. Brightness = Lighting.Brightness;
  752. InAmbience = Lighting.Ambient;
  753. OutAmbience = Lighting.OutdoorAmbient;
  754. }
  755. }
  756. }
  757. }
  758.  
  759. for __, option in next, (Settings) do
  760. local NewOption = Button:Clone()
  761. if option[1] == 'Menu' or option[1] == 'Chams Transparency' then
  762. NewOption['Status']['Style'] = 'Custom';
  763. NewOption['Key']['TextStrokeColor3'] = Misc.GUIColors.On
  764. end
  765.  
  766. NewOption['Text'].Text = option[1]:match('COLOR') and (
  767. (option[1]:match('Team') and option[1]:gsub('COLOR', NewSettings.TCC[1])) or
  768. (option[1]:match('Enemy') and option[1]:gsub('COLOR', NewSettings.ECC[1]))
  769. ) or option[1]
  770. NewOption['Key'].Text = '['.. ((typeof(option[3]) == 'EnumItem' and option[3].Name) or option[3]) .. ']'
  771. NewOption.Parent = Menu['Main']['Buttons']
  772.  
  773. if option[1] == 'Chams Transparency' then
  774. NewOption['Name'] = 'Frans'
  775. end
  776.  
  777. local Func, Name = GetFunc(Functions, option[1])
  778. if Func then
  779. NewOption['Text']['MouseButton1Down']:connect(function()
  780. if not option[2] then return end
  781. if NewOption.Status.Style.Name == 'DropShadow' then
  782. NewOption.Status.Style = 'Custom'
  783. elseif NewOption.Status.Style.Name == 'Custom' then
  784. NewOption.Status.Style = 'DropShadow'
  785. end
  786.  
  787. if option[1]:match('Aimbot') then
  788. Func(NewOption)
  789.  
  790. elseif option[1]:match('Fullbright') then
  791. Func(true, NewOption['Key'])
  792.  
  793. else
  794. Func()
  795. end
  796. end)
  797. if option[3] == 'Toggle' then
  798. if Name:match('Team') then
  799. NewOption['Key']['MouseButton1Down']:connect(function()
  800. local Tab, Pos = GetColor(Misc.ChamsColors, NewSettings.TCC[2])
  801. if (Pos + 1) < #Misc.ChamsColors then
  802. NewOption['Text'].Text = NewOption['Text'].Text:gsub(NewSettings.TCC[1], Misc.ChamsColors[Pos + 1][1])
  803. NewSettings.TCC = Misc.ChamsColors[Pos + 1]
  804. else
  805. NewOption['Text'].Text = NewOption['Text'].Text:gsub(NewSettings.TCC[1], Misc.ChamsColors[1][1])
  806. NewSettings.TCC = Misc.ChamsColors[1]
  807. end
  808.  
  809. GetFunc(Functions, 'Chams Transparency')()
  810.  
  811. NewOption['Text'].Text = NewOption['Text'].Text:gsub(NewSettings.ECC[1], Misc.ChamsColors[1][1])
  812. NewSettings.ECC = Misc.ChamsColors[1]
  813. end
  814.  
  815. GetFunc(Functions, 'Chams Transparency')()
  816. end)
  817. end
  818.  
  819. elseif option[1] == 'Chams Transparency' then
  820. NewOption['Key']['MouseButton1Down']:connect(function()
  821. GetFunc(Functions, 'Chams Transparency')(true)
  822. end)
  823.  
  824. elseif option[1] == 'Fullbright' then
  825. NewOption['Key']['MouseButton1Down']:connect(function()
  826. local Fullbright = Settings.Fullbright
  827. if not Fullbright.On then return end
  828. if Fullbright.Current < #Fullbright.Options then
  829. Fullbright.Current = Fullbright.Current + 1
  830. else
  831. Fullbright.Current = 1
  832. end
  833. GetFunc(Functions, 'Fullbright')(false, NewOption['Key'])
  834. end)
  835.  
  836. local CharFix = function(char)
  837. local Target = Players:GetPlayerFromCharacter(char)
  838. local Team = Chams['Team']:FindFirstChild(Target['Name'])
  839. local Enemy = Chams['Enemy']:FindFirstChild(Target['Name'])
  840.  
  841. if Team then
  842. for __, handle in next, (Team:GetChildren()) do
  843. if handle['Adornee'] and not handle['Adornee']:IsDescendantOf(game) then
  844. handle['Parent'] = nil
  845. end
  846. end
  847. end
  848.  
  849. if Enemy then
  850. for __, handle in next, (Enemy:GetChildren()) do
  851. if handle['Adornee'] and not handle['Adornee']:IsDescendantOf(game) then
  852. handle['Parent'] = nil
  853. end
  854. end
  855. end
  856. end
  857.  
  858. local CharAbuse = function(char) wait()
  859. for __, func in next, (Misc['CharFunctions']) do
  860. coroutine.wrap(func)(char)
  861. end
  862.  
  863. char['Changed']:connect(function(prop)
  864. if (prop == 'Parent') then
  865. CharFix(char)
  866. end
  867. end)
  868. end
  869.  
  870. for __, player in next, (Players:GetPlayers()) do
  871. player['CharacterAdded']:connect(CharAbuse)
  872. end
  873.  
  874. Players.PlayerAdded:connect(function(Client)
  875. Client['CharacterAdded']:connect(CharAbuse)
  876. end)
  877.  
  878. Players.PlayerRemoving:connect(function(Client)
  879. local Team = Chams['Team']:FindFirstChild(Client['Name'])
  880. local Enemy = Chams['Enemy']:FindFirstChild(Client['Name'])
  881. local ESP = ESPF:FindFirstChild(Client['Name'])
  882.  
  883. if Team then Team['Parent'] = nil end
  884. if Enemy then Enemy['Parent'] = nil end
  885. if ESP then ESP['Parent'] = nil end
  886. end)
  887.  
  888. Input['InputBegan']:connect(function(input, og)
  889. if og then return end
  890.  
  891. if input.UserInputType == Enum.UserInputType.Keyboard then
  892. if input.KeyCode == Enum.KeyCode.Delete then
  893. Functions['Menu']()
  894. end
  895. end
  896. end)
  897.  
  898. Menu.Parent = game.CoreGui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement