Advertisement
Satsuma2000

Untitled

Apr 29th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.94 KB | None | 0 0
  1. --[[ loadstring(game:HttpGet(('https://pastebin.com/raw/ibcp0DZc'),true))() ]]
  2.  
  3. local plr = game.Players.LocalPlayer;
  4. repeat wait(); until plr.Character;
  5. local char = plr.Character;
  6. local zombie_storage = workspace:WaitForChild("Zombie Storage");
  7. local mouse = plr:GetMouse();
  8. local hide_zombie_names = false;
  9.  
  10. local menu_settings = {
  11. menu_status = "Undetectable",
  12. tick_sound = "rbxassetid://156286438",
  13. hover_sound = "rbxassetid://3199281218",
  14. menu_version = "1.0.0",
  15. menu_color = Color3.fromRGB(130,167,217),
  16. menu_highlight_color = Color3.fromRGB(200,200,200),
  17. menu_leave_color = Color3.fromRGB(240, 240, 240),
  18. menu_font = "Code",
  19. menu_color_close = "rbxassetid://3857981268",
  20. menu_settings_icon = "rbxassetid://3857990390",
  21. menu_in_settings = false
  22. }
  23.  
  24. local menu_color_names = {
  25. "blue","red","green","purple","pink","orange","grey","black"
  26. }
  27.  
  28. local menu_color_opts = {
  29. blue = Color3.fromRGB(130, 167, 217),
  30. red = Color3.fromRGB(226, 95, 97),
  31. green = Color3.fromRGB(130, 226, 182),
  32. purple = Color3.fromRGB(206, 60, 206),
  33. pink = Color3.fromRGB(255, 133, 229),
  34. orange = Color3.fromRGB(245, 176, 55),
  35. grey = Color3.fromRGB(171, 171, 171),
  36. black = Color3.fromRGB(0, 0, 0)
  37. }
  38.  
  39. local super_speed_settings = {
  40. super_speed = false;
  41. speed = 80;
  42. }
  43.  
  44. local super_jump_settings = {
  45. super_jump = false;
  46. height = 120;
  47. }
  48.  
  49. local rgb_settings = {
  50. rgb = false
  51. }
  52.  
  53. local checkbox_settings = {
  54. tik = "✓",
  55. null = "",
  56. tik_c = Color3.fromRGB(39,134,34),
  57. null_c = Color3.fromRGB(0,0,0)
  58. }
  59.  
  60. local promod_settings = {
  61. promod = false,
  62. default_fov = 70,
  63. promod_fov = 95
  64. }
  65.  
  66. local flyhack_settings = {
  67. flyhack = false;
  68. ctrl = {f = 0, b = 0, l = 0, r = 0},
  69. lastctrl = {f = 0, b = 0, l = 0, r = 0},
  70. flyhack_maxspeed = 45,
  71. flyhack_speed = 0
  72. }
  73.  
  74. local esp_settings = {
  75. esp = false,
  76. esp_c = Color3.fromRGB(255,0,0),
  77. esp_p_c = Color3.fromRGB(0,255,0),
  78. faces = {"Front","Back","Bottom","Left","Right","Top"}
  79. }
  80.  
  81. local menu_options = {
  82. "[chams]","[noclip]","[promod]","[super_speed]","[super_jump]","[fullbright]","[hide_names]"
  83. }
  84.  
  85. local fullbright = false;
  86.  
  87. function superSpeed(bool)
  88. if bool then
  89. char['Humanoid'].WalkSpeed = 55;
  90. else
  91. char['Humanoid'].WalkSpeed = 16;
  92. end
  93. end
  94.  
  95. function superJump(bool)
  96. if bool then
  97. char['Humanoid'].JumpPower = super_jump_settings.height;
  98. else
  99. char['Humanoid'].JumpPower = 50;
  100. end
  101. end
  102.  
  103. function graphicsMode(bool)
  104. if bool then
  105. local bloom = Instance.new("BloomEffect");
  106. bloom.Enabled = true;
  107. bloom.Intensity = 0.55;
  108. bloom.Size = 30;
  109. bloom.Threshold = 0.95;
  110. bloom.Parent = game.Lighting;
  111. local colorcorrection = Instance.new("ColorCorrectionEffect");
  112. colorcorrection.Enabled = true;
  113. colorcorrection.Brightness = 0;
  114. colorcorrection.Contrast = 0;
  115. colorcorrection.Saturation = 1;
  116. colorcorrection.TintColor = Color3.fromRGB(255,255,255);
  117. colorcorrection.Parent = game.Lighting;
  118. local sunrays = Instance.new("SunRaysEffect");
  119. sunrays.Enabled = true;
  120. sunrays.Intensity = 0.4;
  121. sunrays.Spread = 1;
  122. sunrays.Parent = game.Lighting;
  123. else
  124. for i,v in pairs(game.Lighting:GetChildren()) do
  125. if v:IsA("BloomEffect") or v:IsA("ColorCorrectionEffect") or v:IsA("SunRaysEffect") then
  126. v:Destroy();
  127. end
  128. end
  129. end
  130. end
  131.  
  132. function proMod(bool)
  133. if bool then
  134. workspace.Camera.FieldOfView = promod_settings.promod_fov;
  135. else
  136. workspace.Camera.FieldOfView = promod_settings.default_fov;
  137. end
  138. end
  139.  
  140. function flyHack()
  141. local torso = char['HumanoidRootPart'];
  142. local bg = Instance.new("BodyGyro", torso)
  143. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  144. bg.cframe = torso.CFrame
  145. local bv = Instance.new("BodyVelocity", torso)
  146. bv.velocity = Vector3.new(0,0.1,0)
  147. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  148. repeat wait()
  149. plr.Character.Humanoid.PlatformStand = true
  150. if flyhack_settings.ctrl.l + flyhack_settings.ctrl.r ~= 0 or flyhack_settings.ctrl.f + flyhack_settings.ctrl.b ~= 0 then
  151. flyhack_settings.flyhack_speed = flyhack_settings.flyhack_speed+.5+(flyhack_settings.flyhack_speed/flyhack_settings.flyhack_maxspeed)
  152. if flyhack_settings.flyhack_speed > flyhack_settings.flyhack_maxspeed then
  153. flyhack_settings.flyhack_speed = flyhack_settings.flyhack_maxspeed
  154. end
  155. elseif not (flyhack_settings.ctrl.l + flyhack_settings.ctrl.r ~= 0 or flyhack_settings.ctrl.f + flyhack_settings.ctrl.b ~= 0) and flyhack_settings.flyhack_speed ~= 0 then
  156. flyhack_settings.flyhack_speed = flyhack_settings.flyhack_speed-1
  157. if flyhack_settings.flyhack_speed < 0 then
  158. flyhack_settings.flyhack_speed = 0
  159. end
  160. end
  161. if (flyhack_settings.ctrl.l + flyhack_settings.ctrl.r) ~= 0 or (flyhack_settings.ctrl.f + flyhack_settings.ctrl.b) ~= 0 then
  162. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (flyhack_settings.ctrl.f+flyhack_settings.ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(flyhack_settings.ctrl.l+flyhack_settings.ctrl.r,(flyhack_settings.ctrl.f+flyhack_settings.ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*flyhack_settings.flyhack_speed
  163. flyhack_settings.lastctrl = {f = flyhack_settings.ctrl.f, b = flyhack_settings.ctrl.b, l = flyhack_settings.ctrl.l, r = flyhack_settings.ctrl.r}
  164. elseif (flyhack_settings.ctrl.l + flyhack_settings.ctrl.r) == 0 and (flyhack_settings.ctrl.f + flyhack_settings.ctrl.b) == 0 and flyhack_settings.flyhack_speed ~= 0 then
  165. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (flyhack_settings.lastctrl.f+flyhack_settings.lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(flyhack_settings.lastctrl.l+flyhack_settings.lastctrl.r,(flyhack_settings.lastctrl.f+flyhack_settings.lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*flyhack_settings.flyhack_speed
  166. else
  167. bv.velocity = Vector3.new(0,0.1,0)
  168. end
  169. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((flyhack_settings.ctrl.f+flyhack_settings.ctrl.b)*50*flyhack_settings.flyhack_speed/flyhack_settings.flyhack_maxspeed),0,0)
  170. until not flyhack_settings.flyhack
  171. flyhack_settings.ctrl = {f = 0, b = 0, l = 0, r = 0}
  172. flyhack_settings.lastctrl = {f = 0, b = 0, l = 0, r = 0}
  173. flyhack_settings.flyhack_speed = 0
  174. bg:Destroy()
  175. bv:Destroy()
  176. plr.Character.Humanoid.PlatformStand = false
  177. end
  178.  
  179. mouse.KeyDown:connect(function(key)
  180. if flyhack_settings.flyhack then
  181. if key:lower() == "w" then
  182. flyhack_settings.ctrl.f = 1
  183. elseif key:lower() == "s" then
  184. flyhack_settings.ctrl.b = -1
  185. elseif key:lower() == "a" then
  186. flyhack_settings.ctrl.l = -1
  187. elseif key:lower() == "d" then
  188. flyhack_settings.ctrl.r = 1
  189. end
  190. end
  191. end)
  192.  
  193. mouse.KeyUp:connect(function(key)
  194. if flyhack_settings.flyhack then
  195. if key:lower() == "w" then
  196. flyhack_settings.ctrl.f = 0
  197. elseif key:lower() == "s" then
  198. flyhack_settings.ctrl.b = 0
  199. elseif key:lower() == "a" then
  200. flyhack_settings.ctrl.l = 0
  201. elseif key:lower() == "d" then
  202. flyhack_settings.ctrl.r = 0
  203. end
  204. end
  205. end)
  206.  
  207. function removeZombieNames(bool)
  208. if bool then
  209. for i,v in pairs(zombie_storage:GetChildren()) do
  210. local hum = v:FindFirstChildOfClass("Humanoid");
  211. hum.DisplayDistanceType = "None";
  212. end
  213. else
  214. for i,v in pairs(zombie_storage:GetChildren()) do
  215. local hum = v:FindFirstChildOfClass("Humanoid");
  216. hum.DisplayDistanceType = "Viewer";
  217. end
  218. end
  219. end
  220.  
  221. function createDistanceLines(part1,part2,player)
  222. local beam = Instance.new("Beam");
  223. local at1 = Instance.new("Attachment");
  224. local at2 = Instance.new("Attachment");
  225. if player then
  226. beam.Color = ColorSequence.new({
  227. ColorSequenceKeypoint.new(0, Color3.fromRGB(0,255,0)),
  228. ColorSequenceKeypoint.new(1, Color3.fromRGB(0,255,0))
  229. }
  230. )
  231. else
  232. beam.Color = ColorSequence.new({
  233. ColorSequenceKeypoint.new(0, Color3.fromRGB(255,0,0)),
  234. ColorSequenceKeypoint.new(1, Color3.fromRGB(255,0,0))
  235. }
  236. )
  237. end
  238. at1.Parent = part1;
  239. at2.Parent = part2;
  240. beam.Segments = 1;
  241. beam.Width0 = 0.1;
  242. beam.Width1 = 0.1;
  243. beam.Parent = part1;
  244.  
  245. beam.Attachment0 = at1;
  246. beam.Attachment1 = at2;
  247. end
  248.  
  249. function createFaces(obj,player)
  250. for i=0,5 do
  251. local surface = Instance.new("SurfaceGui",obj);
  252. surface.Face = Enum.NormalId[esp_settings.faces[i+1]];
  253. surface.AlwaysOnTop = true
  254. local frame = Instance.new("Frame",surface);
  255. frame.Size = UDim2.new(1,0,1,0);
  256. frame.BorderSizePixel = 0 ;
  257. frame.BackgroundTransparency = 0.5;
  258. if player then
  259. frame.BackgroundColor3 = esp_settings.esp_p_c;
  260. else
  261. frame.BackgroundColor3 = esp_settings.esp_c;
  262. end
  263. end
  264. end
  265.  
  266. function destroyFaces(z)
  267. for i,v in pairs(z:GetChildren()) do
  268. if v:FindFirstChildOfClass("SurfaceGui") then
  269. for i,j in pairs(v:GetChildren()) do
  270. if j:IsA("SurfaceGui") then
  271. j:Destroy();
  272. end
  273. if j.Name == "Beam" or j.Name == "Attachment" then
  274. j:Destroy();
  275. end
  276. end
  277. end
  278. end
  279. for i,v in pairs(char['HumanoidRootPart']:GetChildren()) do
  280. if v.Name == "Beam" or v.Name == "Attachment" then
  281. v:Destroy();
  282. end
  283. end
  284. end
  285.  
  286. function ESP(z)
  287. if z then
  288. createDistanceLines(char['HumanoidRootPart'],z['HumanoidRootPart']);
  289. for i,v in pairs(z:GetChildren()) do
  290. if v:IsA("BasePart") then
  291. createFaces(v);
  292. end
  293. end
  294. for i,v in pairs(game.Players:GetChildren()) do
  295. if workspace[v.Name] then
  296. createDistanceLines(char['HumanoidRootPart'],workspace[v.Name]['HumanoidRootPart'],true);
  297. for i,b in pairs(workspace[v.Name]:GetChildren()) do
  298. if v.Name ~= plr.Name then
  299. if b:IsA("BasePart") then
  300. createFaces(b,true);
  301. end
  302. end
  303. end
  304. end
  305. end
  306. else
  307. for i,v in pairs(zombie_storage:GetChildren()) do
  308. destroyFaces(v);
  309. end
  310. for i,v in pairs(game.Players:GetChildren()) do
  311. if workspace[v.Name] then
  312. destroyFaces(workspace[v.Name]);
  313. end
  314. end
  315. end
  316. end
  317.  
  318. workspace.ChildAdded:Connect(function(h)
  319. for i,v in pairs(game.Players:GetChildren()) do
  320. if h.Name == v.Name then
  321. repeat wait(); until workspace[v.Name]:FindFirstChildOfClass("Humanoid");
  322. if esp_settings.esp then
  323. createDistanceLines(char['HumanoidRootPart'],workspace[h.Name]['HumanoidRootPart'],true);
  324. for i,j in pairs(workspace[h.Name]:GetChildren()) do
  325. if j:IsA("BasePart") then
  326. createFaces(j,true);
  327. end
  328. end
  329. end
  330. end
  331. end
  332. end)
  333.  
  334. zombie_storage.ChildAdded:Connect(function(h)
  335. repeat wait(); until h:FindFirstChildOfClass("Humanoid");
  336. if esp_settings.esp then
  337. createDistanceLines(char['HumanoidRootPart'],h['HumanoidRootPart']);
  338. end
  339. if hide_zombie_names then
  340. local hum = h:FindFirstChildOfClass("Humanoid");
  341. hum.DisplayDistanceType = "None";
  342. end
  343. for i,v in pairs(h:GetChildren()) do
  344. if v:IsA("Part") or v:IsA("MeshPart") then
  345. if esp_settings.esp then
  346. createFaces(v);
  347. end
  348. end
  349. end
  350. end)
  351.  
  352. function smoothRGB()
  353. local botBar = plr.PlayerGui:WaitForChild("Apache")['Frame']['BottomBar'];
  354. local topBar = plr.PlayerGui:WaitForChild("Apache")['Frame']['TopBar'];
  355. for h=0,1,0.003 do
  356. if rgb_settings.rgb then
  357. local increment = 0.5;
  358. local r = (math.sin(workspace.DistributedGameTime/2)/2) + increment;
  359. local g = (math.sin(workspace.DistributedGameTime)/2) + increment;
  360. local b = (math.sin(workspace.DistributedGameTime*1.5)/2) + increment;
  361. local color = Color3.new(r,g,b);
  362. topBar.BackgroundColor3 = color;
  363. botBar.BackgroundColor3 = color;
  364. else
  365. topBar.BackgroundColor3 = menu_settings.menu_color;
  366. botBar.BackgroundColor3 = menu_settings.menu_color;
  367. end
  368. wait();
  369. if rgb_settings.rgb then
  370. smoothRGB();
  371. end
  372. end
  373. end
  374.  
  375. function hackLoader(hack)
  376. if hack == "[chams]" then
  377. if not esp_settings.esp then
  378. esp_settings.esp = true;
  379. for i,v in pairs(zombie_storage:GetChildren()) do
  380. ESP(v);
  381. end
  382. else
  383. esp_settings.esp = false;
  384. ESP();
  385. end
  386. end
  387. if hack == "[rgb_topbar]" then
  388. if not smooth_rgb then
  389. smooth_rgb = true;
  390. spawn(function()
  391. smoothRGB();
  392. end)
  393. else
  394. smooth_rgb = false;
  395. end
  396. end
  397. if hack == "[hide_names]" then
  398. if not hide_zombie_names then
  399. hide_zombie_names = true;
  400. removeZombieNames(true);
  401. else
  402. hide_zombie_names = false;
  403. removeZombieNames();
  404. end
  405. end
  406. if hack == "[noclip]" then
  407. if not flyhack_settings.flyhack then
  408. flyhack_settings.flyhack = true;
  409. flyHack();
  410. else
  411. flyhack_settings.flyhack = false;
  412. flyHack();
  413. end
  414. end
  415. if hack == "[promod]" then
  416. if not promod_settings.promod then
  417. promod_settings.promod = true;
  418. proMod(true);
  419. else
  420. promod_settings.promod = false;
  421. proMod();
  422. end
  423. end
  424. if hack == "[fullbright]" then
  425. if not fullbright then
  426. fullbright = true;
  427. graphicsMode(true);
  428. else
  429. fullbright = false;
  430. graphicsMode();
  431. end
  432. end
  433. if hack == "[super_speed]" then
  434. if not super_speed_settings.super_speed then
  435. super_speed_settings.super_speed = true;
  436. superSpeed(true);
  437. else
  438. super_speed_settings.super_speed = false;
  439. superSpeed();
  440. end
  441. end
  442. if hack == "[super_jump]" then
  443. if not super_jump_settings.super_jump then
  444. super_jump_settings.super_jump = true;
  445. superJump(true);
  446. else
  447. super_jump_settings.super_jump = false;
  448. superJump();
  449. end
  450. end
  451. end
  452.  
  453. function initializeMenu()
  454. local UI = Instance.new("ScreenGui");
  455. UI.Parent = plr.PlayerGui;
  456. UI.Name = "Apache";
  457. local MainFrame = Instance.new("Frame");
  458. MainFrame.Parent = UI;
  459. MainFrame.BackgroundColor3 = Color3.fromRGB(255,255,255);
  460. MainFrame.BackgroundTransparency = 0;
  461. MainFrame.BorderSizePixel = 0;
  462. MainFrame.Size = UDim2.new(0,188,0,313);
  463. MainFrame.Position = UDim2.new(0,20,0,40);
  464. MainFrame.Active = true;
  465. MainFrame.Draggable = true;
  466. local TopBar = Instance.new("ImageLabel");
  467. TopBar.Parent = MainFrame;
  468. TopBar.BackgroundColor3 = menu_settings.menu_color;
  469. --TopBar.Image = "rbxassetid://2851926732";
  470. --TopBar.BackgroundColor3 = menu_settings.menu_color;
  471. --TopBar.BackgroundTransparency = 1;
  472. TopBar.Position = UDim2.new(-0,0,-0.058,0);
  473. TopBar.Size = UDim2.new(0,188,0,49);
  474. TopBar.ScaleType = "Slice";
  475. TopBar.SliceScale = 1;
  476. TopBar.SliceCenter = Rect.new(12, 12, 12, 12);
  477. TopBar.BorderSizePixel = 0;
  478. TopBar.Name = "TopBar";
  479. local Ignore = Instance.new("Frame");
  480. Ignore.Parent = MainFrame;
  481. Ignore.Size = UDim2.new(0,188,0,46);
  482. Ignore.Position = UDim2.new(-0,0,0.048,0);
  483. Ignore.BackgroundColor3 = Color3.fromRGB(255,255,255);
  484. Ignore.BorderSizePixel = 0;
  485. local Scroller = Instance.new("ScrollingFrame");
  486. Scroller.Parent = MainFrame;
  487. Scroller.Size = UDim2.new(0,170,0,280);
  488. Scroller.Position = UDim2.new(0.043,0,0.073,0);
  489. Scroller.BackgroundColor3 = Color3.fromRGB(232,232,232);
  490. Scroller.BorderSizePixel = 1;
  491. local Options = Instance.new("Folder");
  492. Options.Parent = UI;
  493. Options.Name = "Options";
  494. local Template = Instance.new("Folder");
  495. Template.Parent = MainFrame;
  496. Template.Name = "Template";
  497. local TemplateOption = Instance.new("TextLabel");
  498. TemplateOption.Name = "TemplateOption";
  499. TemplateOption.Parent = Template;
  500. TemplateOption.BackgroundColor3 = menu_settings.menu_leave_color;
  501. TemplateOption.BackgroundTransparency = 0;
  502. TemplateOption.BorderSizePixel = 0;
  503. TemplateOption.TextColor3 = Color3.fromRGB(0,0,0);
  504. TemplateOption.Font = menu_settings.menu_font;
  505. TemplateOption.Size = UDim2.new(0,157,0,30);
  506. TemplateOption.TextSize = 15;
  507. TemplateOption.TextStrokeTransparency = 1;
  508. TemplateOption.TextXAlignment = "Right";
  509. TemplateOption.Position = UDim2.new(0,0,0,0);
  510. TemplateOption.Visible = false;
  511. local TemplateCheckBox = Instance.new("TextButton");
  512. TemplateCheckBox.Name = "CheckBox";
  513. TemplateCheckBox.Parent = TemplateOption;
  514. TemplateCheckBox.BackgroundColor3 = Color3.fromRGB(255,255,255);
  515. TemplateCheckBox.BackgroundTransparency = 0;
  516. TemplateCheckBox.BorderSizePixel = 1;
  517. TemplateCheckBox.Text = "";
  518. TemplateCheckBox.Size = UDim2.new(0,20,0,20);
  519. TemplateCheckBox.Position = UDim2.new(0.051,-3,0.167,0);
  520. TemplateCheckBox.TextColor3 = Color3.fromRGB(0,0,0);
  521. TemplateCheckBox.TextSize = 17;
  522. local BottomBar = Instance.new("TextLabel");
  523. BottomBar.Parent = MainFrame;
  524. BottomBar.BackgroundColor3 = menu_settings.menu_color;
  525. BottomBar.Visible = true;
  526. BottomBar.Size = UDim2.new(0,188,0,27);
  527. BottomBar.Position = UDim2.new(0,0,1,0);
  528. BottomBar.BorderSizePixel = 0;
  529. BottomBar.Font = menu_settings.menu_font;
  530. BottomBar.TextColor3 = Color3.fromRGB(255,255,255);
  531. BottomBar.Text = "[apache,by_jord404]";
  532. BottomBar.TextSize = 15;
  533. BottomBar.Name = "BottomBar";
  534. --BottomBar.TextXAlignment = "Left";
  535. local Settings = Instance.new("ImageButton");
  536. Settings.Parent = TopBar;
  537. Settings.Image = menu_settings.menu_settings_icon;
  538. Settings.Size = UDim2.new(0,20,0,20);
  539. Settings.BackgroundTransparency = 1;
  540. Settings.Position = UDim2.new(0.894,-7,0,7);
  541. local ColorPanel = Instance.new("ScrollingFrame");
  542. ColorPanel.Parent = MainFrame;
  543. ColorPanel.Size = UDim2.new(0,170,0,280);
  544. ColorPanel.Position = UDim2.new(0.043,0,0.073,0);
  545. ColorPanel.BackgroundColor3 = Color3.fromRGB(232,232,232);
  546. ColorPanel.Visible = false;
  547. local colorOption = Instance.new("TextButton");
  548. colorOption.Name = "colorOption";
  549. colorOption.Parent = Template;
  550. colorOption.BackgroundColor3 = menu_settings.menu_leave_color;
  551. colorOption.BackgroundTransparency = 0;
  552. colorOption.BorderSizePixel = 0;
  553. colorOption.TextColor3 = Color3.fromRGB(0,0,0);
  554. colorOption.Font = menu_settings.menu_font;
  555. colorOption.Size = UDim2.new(0,157,0,30);
  556. colorOption.TextSize = 15;
  557. colorOption.TextStrokeTransparency = 1;
  558. colorOption.TextXAlignment = "Right";
  559. colorOption.Position = UDim2.new(0,0,0,0);
  560. colorOption.Visible = false;
  561. colorOption.Text = "";
  562. local UILL = Instance.new("UIListLayout");
  563. UILL.Parent = Scroller;
  564. UILL.FillDirection = "Vertical";
  565. UILL.HorizontalAlignment = "Left";
  566. UILL.SortOrder = "LayoutOrder";
  567. UILL.VerticalAlignment = "Top";
  568. UILL:Clone().Parent = ColorPanel;
  569. for i,v in pairs(menu_color_names) do
  570. local color = colorOption:Clone();
  571. color.Parent=ColorPanel;
  572. color.Visible=true;
  573. color.Name = v;
  574. end
  575. for i,v in pairs(ColorPanel:GetChildren()) do
  576. if v:IsA("TextButton") then
  577. v.BackgroundColor3 = menu_color_opts[v.Name];
  578. end
  579. end
  580. local rgbOption = TemplateOption:Clone();
  581. rgbOption.Parent = ColorPanel;
  582. rgbOption.Visible = true;
  583. rgbOption.Text = "[smooth_rgb]".." ";
  584. rgbOption.Name = "RGB";
  585. for i,v in pairs(ColorPanel:GetChildren()) do
  586. if v:IsA("TextButton") then
  587. v.MouseButton1Click:Connect(function()
  588. if not rgb_settings.rgb then
  589. TopBar.BackgroundColor3 = menu_color_opts[v.Name];
  590. BottomBar.BackgroundColor3 = menu_color_opts[v.Name];
  591. menu_settings.menu_color = menu_color_opts[v.Name];
  592. end
  593. end)
  594. end
  595. if v:IsA("TextLabel") then
  596. v['CheckBox'].MouseButton1Click:Connect(function()
  597. if v.Text == "[smooth_rgb] " then
  598. if not rgb_settings.rgb then
  599. rgb_settings.rgb = true;
  600. v['CheckBox'].Text = checkbox_settings.tik;
  601. v['CheckBox'].TextColor3 = checkbox_settings.tik_c;
  602. smoothRGB();
  603. else
  604. rgb_settings.rgb = false;
  605. v['CheckBox'].Text = checkbox_settings.null;
  606. v['CheckBox'].TextColor3 = checkbox_settings.null_c;
  607. end
  608. end
  609. end)
  610. end
  611. end
  612. Settings.MouseButton1Click:Connect(function()
  613. if not menu_settings.menu_in_settings then
  614. menu_settings.menu_in_settings = true;
  615. Settings.Image = menu_settings.menu_color_close;
  616. ColorPanel.Visible = true;
  617. else
  618. menu_settings.menu_in_settings = false;
  619. Settings.Image = menu_settings.menu_settings_icon;
  620. ColorPanel.Visible = false;
  621. end
  622. end)
  623. Settings.MouseEnter:Connect(function()
  624. --[[ ]]
  625. end)
  626. local Title = Instance.new("TextLabel");
  627. Title.Parent = TopBar;
  628. Title.BackgroundTransparency=1;
  629. Title.TextSize = 15;
  630. Title.Font = menu_settings.menu_font;
  631. Title.TextColor3 = Color3.fromRGB(255,255,255);
  632. Title.Position = UDim2.new(0.043,0,0,0);
  633. Title.Size = UDim2.new(0,179,0,33);
  634. Title.TextXAlignment = "Left";
  635. local TickSound = Instance.new("Sound")
  636. TickSound.Parent = UI;
  637. TickSound.SoundId = menu_settings.tick_sound;
  638. local HoverSound = Instance.new("Sound")
  639. HoverSound.Parent = UI;
  640. HoverSound.SoundId = menu_settings.hover_sound;
  641.  
  642. local optNum = 0;
  643.  
  644. for i,v in pairs(menu_options) do
  645. optNum = optNum + 1;
  646. local optFolder = Instance.new("Folder");
  647. optFolder.Parent = Options;
  648. optFolder.Name = v;
  649. local toggleCheck = Instance.new("BoolValue");
  650. toggleCheck.Name = "toggle";
  651. toggleCheck.Parent = optFolder;
  652. local optNumber = Instance.new("NumberValue");
  653. optNumber.Name = "num";
  654. optNumber.Parent = optFolder;
  655. optNumber.Value = optNum;
  656. end
  657.  
  658. local optCount = 0;
  659.  
  660. for i,v in pairs(Options:GetChildren()) do
  661. local option = TemplateOption:Clone();
  662. option.Parent=Scroller;
  663. option.Visible=true;
  664. option.Text = v.Name.." ";
  665. option.Name = v.Name;
  666. optCount = optCount +1;
  667. end
  668.  
  669. Title.Text = "[0/"..optCount.."]"
  670.  
  671. local optionsSelected = 0;
  672.  
  673. for i,v in pairs(Scroller:GetChildren()) do
  674. if v:IsA("TextLabel") and v['CheckBox'] then
  675. v['CheckBox'].MouseButton1Click:Connect(function()
  676. if Options[v.Name]['toggle'].Value then
  677. optionsSelected = optionsSelected - 1;
  678. Title.Text = "["..optionsSelected.."/"..optCount.."]";
  679. Options[v.Name]['toggle'].Value = false;
  680. v['CheckBox'].Text = checkbox_settings.null;
  681. v['CheckBox'].TextColor3 = checkbox_settings.null_c;
  682. if not menu_settings.menu_in_settings then
  683. TickSound:Play();
  684. end
  685. hackLoader(v.Name);
  686. else
  687. optionsSelected = optionsSelected + 1;
  688. Title.Text = "["..optionsSelected.."/"..optCount.."]";
  689. Options[v.Name]['toggle'].Value = true;
  690. v['CheckBox'].Text = checkbox_settings.tik;
  691. v['CheckBox'].TextColor3 = checkbox_settings.tik_c;
  692. if not menu_settings.menu_in_settings then
  693. TickSound:Play();
  694. end
  695. hackLoader(v.Name);
  696. end
  697. end)
  698. end
  699. end
  700.  
  701. for i,v in pairs(Scroller:GetChildren()) do
  702. if v:IsA("TextLabel") then
  703. v.MouseEnter:Connect(function()
  704. if not menu_settings.menu_in_settings then
  705. HoverSound:Play();
  706. end
  707. --Title.Text = Options[v.Name]["num"].Value.."/"..optCount;
  708. v.BackgroundColor3 = menu_settings.menu_highlight_color
  709. end)
  710. end
  711. end
  712.  
  713. for i,v in pairs(Scroller:GetChildren()) do
  714. if v:IsA("TextLabel") then
  715. v.MouseLeave:Connect(function()
  716. v.BackgroundColor3 = menu_settings.menu_leave_color;
  717. end)
  718. end
  719. end
  720.  
  721. char['Humanoid'].Died:Connect(function()
  722. for i,v in pairs(Scroller:GetChildren()) do
  723. if v:IsA("TextLabel") and v['CheckBox'] then
  724. v['CheckBox'].Text = checkbox_settings.null;
  725. v['CheckBox'].TextColor3 = checkbox_settings.null_c;
  726. end
  727. end
  728. for i,v in pairs(Options:GetChildren()) do
  729. v['toggle'].Value = false;
  730. end
  731. flyhack_settings.flyhack = false;
  732. esp_settings.esp = false;
  733. hide_zombie_names = false;
  734. smooth_rgb = false;
  735. ESP();
  736. removeZombieNames();
  737. optNum = 0;
  738. optCount = 0;
  739. UI:Destroy();
  740. end)
  741.  
  742. end
  743.  
  744. initializeMenu();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement