Advertisement
PowerMartin

Untitled

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