Advertisement
Guest User

Untitled

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