Advertisement
Guest User

MadCity Gui

a guest
Feb 7th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.95 KB | None | 0 0
  1.  
  2.  
  3. --[[
  4. __ ___ _________ __ __ __
  5. / |/ /___ _____/ / ____(_) /___ __/ / / /___ __ ___ __
  6. / /|_/ / __ `/ __ / / / / __/ / / / /_/ / __ `/ |/_/ |/_/
  7. / / / / /_/ / /_/ / /___/ / /_/ /_/ / __ / /_/ /> <_> <
  8. /_/ /_/\__,_/\__,_/\____/_/\__/\__, /_/ /_/\__,_/_/|_/_/|_|
  9. /____/ v1.0
  10. By 3dsboy08
  11.  
  12. ]]
  13.  
  14. do
  15. if game.PlaceId ~= 1224212277 then return end
  16.  
  17. local function trick() return 'asd' end
  18. if not is_synapse_function(trick) then while true do end end
  19.  
  20. local LocalPlayer = game:GetService("Players").LocalPlayer
  21. if not LocalPlayer.Character or LocalPlayer.Character.Parent == nil then
  22. LocalPlayer.CharacterAdded:Wait()
  23. end
  24. end
  25.  
  26. local Utils = {}
  27. do
  28. local Camera = game:GetService("Workspace").CurrentCamera
  29. local Players = game:GetService("Players")
  30. local Player = Players.LocalPlayer
  31. local Character = Player.Character
  32. local NewCharEvent = Instance.new("BindableEvent")
  33.  
  34. function Utils.ConvertTable(Table, KeyValue)
  35. local Result = {}
  36. if KeyValue then
  37. for I,V in pairs(Table) do
  38. Result[#Result + 1] =
  39. {
  40. ["Key"] = I,
  41. ["Value"] = V
  42. }
  43. end
  44. else
  45. for I,V in pairs(Table) do
  46. Result[#Result + 1] = V
  47. end
  48. end
  49. return Result
  50. end
  51.  
  52. function Utils.GetDistance(From, To)
  53. local Point1
  54. local Point2
  55.  
  56. if typeof(From) == 'Vector3' then
  57. Point1 = From
  58. elseif typeof(From) == 'Instance' and From:IsA'BasePart' then
  59. Point1 = From.Position
  60. else
  61. Point1 = Vector3.new()
  62. end
  63.  
  64. if typeof(To) == 'Vector3' then
  65. Point2 = To
  66. elseif typeof(To) == 'Instance' and To:IsA'BasePart' then
  67. Point2 = To.Position
  68. elseif To == nil then
  69. Point2 = Camera.CFrame.p
  70. else
  71. Point2 = Vector3.new()
  72. end
  73.  
  74. return (Point1 - Point2).magnitude
  75. end
  76.  
  77. function Utils.GetNearestPlayer(Radius, TeamCheck, Friendly, CrimCheck, Blacklist)
  78. if not Radius then Radius = 10000 end
  79.  
  80. local Nearest
  81. local Closest = Radius
  82.  
  83. for i, v in pairs(Players:GetPlayers()) do
  84. if v ~= Player and v.Character ~= nil and v.Character:FindFirstChild'HumanoidRootPart' then
  85. local ShouldContinue = true
  86. if TeamCheck and v.TeamColor == Player.TeamColor then
  87. ShouldContinue = false
  88. end
  89. if CrimCheck and tostring(v.Team) ~= "Criminals" then
  90. ShouldContinue = false
  91. end
  92. if Blacklist then
  93. for I2,V2 in pairs(Blacklist) do
  94. if I2.Name == v.Name and V2 then
  95. ShouldContinue = false
  96. end
  97. end
  98. end
  99. if Friendly then
  100. if v.TeamColor == Player.TeamColor then
  101. ShouldContinue = true
  102. else
  103. ShouldContinue = false
  104. end
  105. end
  106. if ShouldContinue then
  107. local Distance = Utils.GetDistance(v.Character.HumanoidRootPart)
  108. if Distance < Closest then
  109. Closest = Distance
  110. Nearest = v
  111. end
  112. end
  113. end
  114. end
  115.  
  116. return Nearest
  117. end
  118.  
  119. function Utils.GetPlayer()
  120. return Player
  121. end
  122.  
  123. function Utils.GetCharacter()
  124. return Character
  125. end
  126.  
  127. function Utils.NewCharacter(Func)
  128. NewCharEvent.Event:Connect(Func)
  129. end
  130.  
  131. function Utils.Split(str, sep)
  132. local result = {}
  133. local regex = ("([^%s]+)"):format(sep)
  134. for each in str:gmatch(regex) do
  135. table.insert(result, each)
  136. end
  137. return result
  138. end
  139.  
  140. function Utils.FindUpvalue(name)
  141. for i,v in pairs(getreg()) do
  142. if type(v) == "function" and islclosure(v) and not is_synapse_function(v) then
  143. for i2,v2 in pairs(debug.getupvalues(v)) do
  144. if i2 == name then return v end
  145. end
  146. end
  147. end
  148. end
  149.  
  150. Player.CharacterAdded:Connect(function(NewChar)
  151. Character = NewChar
  152. NewCharEvent:Fire(NewChar)
  153. end)
  154. end
  155.  
  156. local Remote = {}
  157. do
  158. local Event = game:GetService("ReplicatedStorage").Event
  159.  
  160. function Remote.FireServer(...)
  161. Event:FireServer(...)
  162. end
  163. end
  164.  
  165. local Settings = {}
  166. do
  167. local RealSettings = {}
  168. local RealSavedSettings = {}
  169.  
  170. function Settings.Set(Key, Val)
  171. RealSettings[Key] = Val
  172. end
  173.  
  174. function Settings.Get(Key)
  175. return RealSettings[Key]
  176. end
  177.  
  178. function Settings.SetSaved(Key, Val)
  179. RealSavedSettings[Key] = Val
  180. end
  181.  
  182. function Settings.GetSaved(Key)
  183. return RealSavedSettings[Key]
  184. end
  185.  
  186. --Save settings
  187. local Suc, Res = pcall(function()
  188. return game:GetService("HttpService"):JSONDecode(readfile("madchaxx_settings.bin"))
  189. end)
  190.  
  191. if Suc and type(Res) == "table" then
  192. for I,V in pairs(Res) do
  193. Settings.SetSaved(I, V)
  194. end
  195. end
  196.  
  197. if not Settings.GetSaved("WalkSpeed") then
  198. Settings.SetSaved("WalkSpeed", 50)
  199. end
  200.  
  201. if not Settings.GetSaved("JumpPower") then
  202. Settings.SetSaved("JumpPower", 100)
  203. end
  204.  
  205. if not Settings.GetSaved("Active") then
  206. Settings.SetSaved("Active", {})
  207. end
  208.  
  209. if not Settings.GetSaved("KeyBinds") then
  210. Settings.SetSaved("KeyBinds", {})
  211. end
  212.  
  213. spawn(function()
  214. while wait(10) do
  215. writefile("madchaxx_settings.bin", game:GetService("HttpService"):JSONEncode(RealSavedSettings))
  216. end
  217. end)
  218. end
  219.  
  220. local Bypass = {}
  221. do
  222. local CarObject
  223. local Stats
  224. local EquipTable = {}
  225. for i,v in pairs(Utils.GetPlayer().Backpack:GetDescendants()) do
  226. if v:FindFirstChild("PistolScript") or v:FindFirstChild("RifleScript") or v:FindFirstChild("ItemScript") or v:FindFirstChild("ShotgunScript") or v:FindFirstChild("TazerScript") or v:FindFirstChild("GrenadeScript") or v:FindFirstChild("PowerScript") then
  227. for i2,v2 in next, v:GetDescendants() do
  228. if v2:IsA("LocalScript") then
  229. EquipTable[v.Name] = v2.Parent:WaitForChild("Handle")
  230. end
  231. end
  232. end
  233. end
  234. for i,v in pairs(Utils.GetCharacter():GetDescendants()) do
  235. if v:FindFirstChild("PistolScript") or v:FindFirstChild("RifleScript") or v:FindFirstChild("ItemScript") or v:FindFirstChild("ShotgunScript") or v:FindFirstChild("TazerScript") or v:FindFirstChild("GrenadeScript") or v:FindFirstChild("PowerScript") then
  236. for i2,v2 in next, v:GetDescendants() do
  237. if v2:IsA("LocalScript") then
  238. EquipTable[v.Name] = v2.Parent:WaitForChild("Handle")
  239. end
  240. end
  241. end
  242. end
  243.  
  244. spawn(function()
  245. CarObject = game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("CarChassis"):WaitForChild("Car").Value
  246. Stats = require(CarObject.Settings)
  247. end)
  248.  
  249. function Bypass.Teleport(...)
  250. local HRP = Utils.GetCharacter().HumanoidRootPart
  251. HRP.CFrame = CFrame.new(Vector3.new(...))
  252. return
  253. end
  254.  
  255. function Bypass.WalkSpeed(Disable)
  256. if Disable then
  257. Utils.GetCharacter():WaitForChild'Humanoid'.WalkSpeed = 16
  258. else
  259. Utils.GetCharacter():WaitForChild'Humanoid'.WalkSpeed = Settings.GetSaved("WalkSpeed")
  260. end
  261. end
  262.  
  263. function Bypass.JumpPower(Disable)
  264. if Disable then
  265. Utils.GetCharacter():WaitForChild'Humanoid'.JumpPower = 50
  266. else
  267. Utils.GetCharacter():WaitForChild'Humanoid'.JumpPower = Settings.GetSaved("JumpPower")
  268. end
  269. end
  270.  
  271. function Bypass.Damage(Player)
  272. Bypass.Equip("Pistol")
  273. Remote.FireServer("SHOTTY", Player.Character.Head.Position)
  274. end
  275.  
  276. function Bypass.Taser(Player)
  277. Bypass.Equip("Tazer")
  278. Remote.FireServer("TAZ", Player.Character.UpperTorso)
  279. end
  280.  
  281. function Bypass.Arrest(Player)
  282. Bypass.Equip("Handcuffs")
  283. Remote.FireServer("Arrest", Player)
  284. end
  285.  
  286. function Bypass.Equip(Name)
  287. Remote.FireServer("Equip", Utils.GetPlayer(), EquipTable[Name])
  288. end
  289.  
  290. --Do initial TP bypass
  291. local Hint = Instance.new("Hint")
  292. local Attempts = 1
  293. Hint.Text = "Please wait while MadCityHaxx bypasses Mad City's anticheat. This may take a little while... (attempt " .. tostring(Attempts) .. ")"
  294. Hint.Parent = workspace
  295. local SGui = Instance.new("ScreenGui")
  296. local SFrame = Instance.new("Frame", SGui)
  297. SFrame.Size = UDim2.new(1, 0, 1, 0)
  298. SFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  299. SGui.Parent = game:GetService("CoreGui")
  300. local Rnd = Random.new()
  301. local BackupRP = Utils.GetCharacter().HumanoidRootPart
  302. local BackupCF = BackupRP.CFrame
  303. local function RunAntiTelportRC()
  304. for i=0,25 do
  305. BackupRP.Velocity = Vector3.new(0, 0,0)
  306. Bypass.Teleport(Rnd:NextNumber(1, 5000), Rnd:NextNumber(1, 5000), Rnd:NextNumber(1, 5000))
  307. BackupRP.Velocity = Vector3.new(0, 0,0)
  308. wait()
  309. end
  310. for i=0,5 do
  311. Bypass.Teleport(BackupCF.x, BackupCF.y, BackupCF.z)
  312. wait()
  313. end
  314. wait(6)
  315. for i=0,5 do
  316. Bypass.Teleport(BackupCF.x, BackupCF.y, BackupCF.z)
  317. wait()
  318. end
  319. end
  320. while true do
  321. RunAntiTelportRC()
  322. BackupRP.Velocity = Vector3.new(0, 0,0)
  323. Bypass.Teleport(745.038269, 27.968502, 447.69632)
  324. BackupRP.Velocity = Vector3.new(0, 0,0)
  325. wait(1)
  326. if Utils.GetDistance(Vector3.new(745.038269, 27.968502, 447.69632), Utils.GetCharacter().HumanoidRootPart) < 10 then break end
  327. Attempts = Attempts + 1
  328. Hint.Text = "Please wait while MadCityHaxx bypasses Mad City's anticheat. This may take a little while... (attempt " .. tostring(Attempts) .. ")"
  329. wait()
  330. end
  331. for i=0,5 do
  332. Bypass.Teleport(BackupCF.x, BackupCF.y, BackupCF.z)
  333. wait()
  334. end
  335. SGui:Destroy()
  336. Hint:Destroy()
  337.  
  338. function Bypass.SetNitro(Amount)
  339. if CarObject and Stats then
  340. CarObject.CarChassis.Boost.Value = Amount
  341. Stats.Boost = true
  342. end
  343. end
  344.  
  345. Utils.NewCharacter(function()
  346. Bypass.WalkSpeed(not Settings.Get("WalkSpeedEnabled"))
  347. Bypass.JumpPower(not Settings.Get("JumpPowerEnabled"))
  348. end)
  349.  
  350. --Metatable hook
  351. loadstring([[
  352. local MT = getrawmetatable(game)
  353. local OldNewIndex = MT.__newindex
  354. setreadonly(MT, false)
  355.  
  356. MT.__newindex = newcclosure(function(T, K, V)
  357. if checkcaller() then return OldNewIndex(T, K, V) end
  358.  
  359. if K == "WalkSpeed" then return end
  360. if K == "JumpPower" then return end
  361.  
  362. return OldNewIndex(T, K, V)
  363. end)
  364.  
  365. setreadonly(MT, true)
  366. ]])()
  367.  
  368. local CurrentlyArresting = false
  369. local CurrentlyKilling = false
  370. local ArrestComplete = false
  371. local ArrestBlacklist = {}
  372. local TpAuraBlacklist = {}
  373.  
  374. game:GetService("RunService").Stepped:Connect(function()
  375. if Settings.Get("InfNitro") then
  376. Bypass.SetNitro(300)
  377. end
  378.  
  379. if Settings.Get("NoClip") then
  380. Utils.GetCharacter().Humanoid:ChangeState(11)
  381. end
  382.  
  383. if Settings.Get("MachinePistolHook") then
  384. local MPFunc = Settings.Get("MachinePistolFunc")
  385. local MPUpvals = debug.getupvalues(MPFunc)
  386. local MPEnv = getfenv(MPFunc)
  387. if MPUpvals["Equipped"] then
  388. MPUpvals["RecoilAmount"].Value = Vector3.new(0, 0, 0)
  389. MPUpvals["WC"].PlaySound(MPUpvals["Char"], 139593133, MPUpvals["Torso"])
  390. MPUpvals["WC"].ShootGun(MPUpvals["Char"], MPUpvals["Char"], MPEnv["GetMousePoint"](MPUpvals["Crosshair"].AbsolutePosition.X, MPUpvals["Crosshair"].AbsolutePosition.Y), MPUpvals["GunName"], MPUpvals["Damage"], MPUpvals["Spread"])
  391. spawn(function()
  392. MPEnv["PlayAnimation"](1228022274)
  393. end)
  394. end
  395. end
  396.  
  397. if Settings.Get("AutoArrest") and tostring(Utils.GetPlayer().Team) == "Police" then
  398. local Near = Utils.GetNearestPlayer(10000, true, false, true, ArrestBlacklist)
  399. if Near and not CurrentlyArresting then
  400. CurrentlyArresting = true
  401. spawn(function()
  402. ArrestBlacklist[Near] = true
  403. local Event
  404. Event = Near:GetPropertyChangedSignal("Team"):Connect(function()
  405. ArrestBlacklist[Near] = false
  406. Event:Disconnect()
  407. end)
  408. local Pos = Near.Character.HumanoidRootPart.CFrame.p
  409. Bypass.Teleport(Pos.x, Pos.y, Pos.z)
  410. wait(0.2)
  411. while tostring(Near.Team) == "Criminals" and not ArrestComplete and Settings.Get("AutoArrest") do
  412. Bypass.Taser(Near)
  413. Bypass.Arrest(Near)
  414. Utils.GetCharacter().HumanoidRootPart.CFrame = Near.Character.HumanoidRootPart.CFrame - Vector3.new(3, 0, 0)
  415. wait()
  416. end
  417. CurrentlyArresting = false
  418. ArrestComplete = false
  419. end)
  420. end
  421. end
  422.  
  423. if Settings.Get("TpAura") then
  424. local Near = Utils.GetNearestPlayer(10000, true, false, true, TpAuraBlacklist)
  425. if Near and not CurrentlyKilling then
  426. CurrentlyKilling = true
  427. spawn(function()
  428. TpAuraBlacklist[Near] = true
  429. local Event
  430. Event = Near.CharacterAdded:Connect(function()
  431. TpAuraBlacklist[Near] = false
  432. Event:Disconnect()
  433. end)
  434. local Pos = Near.Character.HumanoidRootPart.CFrame.p
  435. Bypass.Teleport(Pos.x, Pos.y, Pos.z)
  436. wait(0.2)
  437. while Near.Character.Humanoid.Health ~= 0 and Settings.Get("TpAura") do
  438. Bypass.Damage(Near)
  439. Utils.GetCharacter().HumanoidRootPart.CFrame = Near.Character.HumanoidRootPart.CFrame - Vector3.new(3, 0, 0)
  440. wait()
  441. end
  442. CurrentlyKilling = false
  443. end)
  444. end
  445. end
  446.  
  447. if Settings.Get("KillAura") then
  448. local Near = Utils.GetNearestPlayer(100, true, false, true)
  449. if Near then
  450. Bypass.Damage(Near)
  451. end
  452. end
  453. end)
  454.  
  455. local Mouse = Utils.GetPlayer():GetMouse()
  456.  
  457. Mouse.Button1Down:connect(function()
  458. if Settings.Get("ClickTeleport") then
  459. local V3 = Mouse.Hit.p + Vector3.new(0, 2, 0)
  460. Bypass.Teleport(V3.x, V3.y, V3.z)
  461. end
  462. end)
  463. end
  464.  
  465. local UI = {}
  466. do
  467. local Render = loadstring(game:HttpGet("https://cdn.synapse.to/synapsedistro/hub/HaxxMenuMadCity.lua", true))()
  468. loadstring(game:HttpGet("https://cdn.synapse.to/synapsedistro/hub/ESPLib.lua", true))()
  469. local ESPLib = shared.uESP
  470. ESPLib.Enabled = false
  471. ESPLib.Settings.DrawTracers = false
  472.  
  473. local RenderSettings =
  474. {
  475. ['Theme'] =
  476. {
  477. ['Main'] = Color3.fromRGB(171, 71, 188),
  478. ['Background'] = Color3.fromRGB(0, 0, 0),
  479. ['TextColor'] = Color3.fromRGB(255, 255, 255)
  480. },
  481. ['WindowCount'] = -1,
  482. ['Draggable'] = true,
  483. ['Keybind'] = Enum.KeyCode.RightShift
  484. }
  485.  
  486. local Menu = Render.CreateMenu(RenderSettings)
  487. local MenuOptions = Menu.MenuOptions
  488.  
  489. local CombatMenu = MenuOptions.CreateWindow("Combat")
  490. local MovementMenu = MenuOptions.CreateWindow("Movement")
  491. local RenderMenu = MenuOptions.CreateWindow("Render")
  492. local TeleportsMenu = MenuOptions.CreateWindow("Teleports")
  493. local UtilityMenu = MenuOptions.CreateWindow("Utility")
  494. local SettingsMenu = MenuOptions.CreateWindow("Settings")
  495.  
  496. local TpAura = CombatMenu.Add("toggle", "TpAura")
  497. local KillAura = CombatMenu.Add("toggle", "KillAura")
  498. local AutoArrest = CombatMenu.Add("toggle", "Auto Arrest")
  499. local InfAmmo = CombatMenu.Add("clickable", "Infinite Ammo")
  500. local MachinePistol = CombatMenu.Add("clickable", "Machine Pistol")
  501.  
  502. local Speed = MovementMenu.Add("toggle", "Speed")
  503. local SuperJump = MovementMenu.Add("toggle", "Super Jump")
  504. local NoClip = MovementMenu.Add("toggle", "NoClip")
  505. local ClickTeleport = MovementMenu.Add("toggle", "Click Teleport")
  506.  
  507. local ESP = RenderMenu.Add("toggle", "ESP")
  508. local Tracers = RenderMenu.Add("toggle", "Tracers")
  509.  
  510. local Dock = TeleportsMenu.Add("clickable", "Dock")
  511. local Garage = TeleportsMenu.Add("clickable", "Garage")
  512. local Bank = TeleportsMenu.Add("clickable", "Bank")
  513. local CoffeeShop = TeleportsMenu.Add("clickable", "Coffee Shop")
  514. local Casino = TeleportsMenu.Add("clickable", "Casino")
  515. local CrimBase = TeleportsMenu.Add("clickable", "Criminal Base")
  516. local Jewelry = TeleportsMenu.Add("clickable", "Jewelry Store")
  517. local HeliPad = TeleportsMenu.Add("clickable", "Helicopter Pad")
  518. local GunStore = TeleportsMenu.Add("clickable", "Gun Store")
  519. local HeroBase = TeleportsMenu.Add("clickable", "Hero Base")
  520. local AirField = TeleportsMenu.Add("clickable", "Air Field")
  521. local OutsidePrison = TeleportsMenu.Add("clickable", "Outside Prison")
  522. local InPrison = TeleportsMenu.Add("clickable", "In Prison")
  523. local PrisonField = TeleportsMenu.Add("clickable", "Prison Field")
  524.  
  525. local InfNitro = UtilityMenu.Add("toggle", "Infinite Nitro")
  526.  
  527. local SpeedPlus = SettingsMenu.Add("clickable", "Speed +")
  528. local SpeedMinus = SettingsMenu.Add("clickable", "Speed -")
  529. local SuperJumpPlus = SettingsMenu.Add("clickable", "Super Jump +")
  530. local SuperJumpMinus = SettingsMenu.Add("clickable", "Super Jump -")
  531. local DisableBlur = SettingsMenu.Add("toggle", "Disable Blur")
  532.  
  533. Dock.Callback = function()
  534. Bypass.Teleport(-92.5417404, 27.483942, 274.167969 )
  535. end
  536.  
  537. Garage.Callback = function()
  538. Bypass.Teleport(242.900726, 27.8274384, -484.288391 )
  539. end
  540.  
  541. Bank.Callback = function()
  542. Bypass.Teleport(745.038269, 27.968502, 447.69632 )
  543. end
  544.  
  545. CoffeeShop.Callback = function()
  546. Bypass.Teleport(645.106873, 38.6579895, -95.3533325 )
  547. end
  548.  
  549. Casino.Callback = function()
  550. Bypass.Teleport(1782.25916, 28.0203667, 682.395386 )
  551. end
  552.  
  553. CrimBase.Callback = function()
  554. Bypass.Teleport(2032.93066, 27.9056149, 307.196838 )
  555. end
  556.  
  557. Jewelry.Callback = function()
  558. Bypass.Teleport(-201.371063, 27.8703308, 714.134644 )
  559. end
  560.  
  561. HeliPad.Callback = function()
  562. Bypass.Teleport(-343.052734, 80.5529633, -278.809296 )
  563. end
  564.  
  565. GunStore.Callback = function()
  566. Bypass.Teleport(-1612.10583, 45.095211, 681.565125 )
  567. end
  568.  
  569. HeroBase.Callback = function()
  570. Bypass.Teleport(-1709.20862, 12.6549339, 1525.65527 )
  571. end
  572.  
  573. AirField.Callback = function()
  574. Bypass.Teleport(-2120.67017, 31.6405296, -1178.73206 )
  575. end
  576.  
  577. OutsidePrison.Callback = function()
  578. Bypass.Teleport(-893.863037, 56.0996323, -2633.10229 )
  579. end
  580.  
  581. InPrison.Callback = function()
  582. Bypass.Teleport(-902.866577, 56.5785141, -2893.0105 )
  583. end
  584.  
  585. PrisonField.Callback = function()
  586. Bypass.Teleport(-1005.1217, 54.3845444, -3084.28662)
  587. end
  588.  
  589. InfNitro.Callback = function(Type, Name, Value)
  590. Settings.Set("InfNitro", Value)
  591. end
  592.  
  593. DisableBlur.Callback = function(Type, Name, Value)
  594. Menu.SetBlur(not Value)
  595. end
  596.  
  597. Speed.Callback = function(Type, Name, Value)
  598. Bypass.WalkSpeed(not Value)
  599. Settings.Set("WalkSpeedEnabled", Value)
  600. end
  601.  
  602. SuperJump.Callback = function(Type, Name, Value)
  603. Bypass.JumpPower(not Value)
  604. Settings.Set("JumpPowerEnabled", Value)
  605. end
  606.  
  607. NoClip.Callback = function(Type, Name, Value)
  608. Settings.Set("NoClip", Value)
  609. end
  610.  
  611. ClickTeleport.Callback = function(Type, Name, Value)
  612. Settings.Set("ClickTeleport", Value)
  613. end
  614.  
  615. AutoArrest.Callback = function(Type, Name, Value)
  616. Settings.Set("AutoArrest", Value)
  617. end
  618.  
  619. TpAura.Callback = function(Type, Name, Value)
  620. Settings.Set("TpAura", Value)
  621. end
  622.  
  623. KillAura.Callback = function(Type, Name, Value)
  624. Settings.Set("KillAura", Value)
  625. end
  626.  
  627. ESP.Callback = function(Type, Name, Value)
  628. ESPLib.Enabled = Value
  629. end
  630.  
  631. Tracers.Callback = function(Type, Name, Value)
  632. ESPLib.Settings.DrawTracers = Value
  633. end
  634.  
  635. InfAmmo.Callback = function()
  636. for i,v in pairs(Utils.GetPlayer().Backpack:GetDescendants()) do
  637. if v:FindFirstChild("PistolScript") or v:FindFirstChild("RifleScript") or v:FindFirstChild("ShotgunScript") or v:FindFirstChild("TazerScript") or v:FindFirstChild("GrenadeScript") or v:FindFirstChild("PowerScript") then
  638. for i2,v2 in next, v:GetDescendants() do
  639. if v2:IsA("LocalScript") then
  640. local env = getsenv(v2)
  641. debug.setupvalue(env.Reload, "Ammo", math.huge)
  642. debug.setupvalue(env.Reload, "Clip", math.huge)
  643. debug.setupvalue(env.Reload, "Recoil", 0)
  644. end
  645. end
  646. end
  647. end
  648. end
  649.  
  650. local function FindPistolFunc()
  651. for i,v in pairs(getreg()) do
  652. if type(v) == "function" and islclosure(v) and not is_synapse_function(v) then
  653. for i2,v2 in pairs(debug.getupvalues(v)) do
  654. if i2 == "GunName" and v2 == "Pistol" then
  655. local trigger = true
  656. for i3,v3 in pairs(debug.getconstants(v)) do
  657. if v3 == "Enum" or v3 == "TargetFilter" then trigger = false end
  658. end
  659. if trigger then return v end
  660. end
  661. end
  662. end
  663. end
  664. end
  665.  
  666. local MachinePistolDebounce = false
  667. MachinePistol.Callback = function()
  668. if MachinePistolDebounce then return end
  669. local Func = FindPistolFunc()
  670. print(Func)
  671. if not Func then return end
  672. for i,v in pairs(Utils.GetPlayer().Backpack:GetDescendants()) do
  673. if v:FindFirstChild("PistolScript") then
  674. for i2,v2 in next, v:GetDescendants() do
  675. if v2:IsA("LocalScript") then
  676. local env = getsenv(v2)
  677. debug.setupvalue(env.Reload, "FireRate", math.huge)
  678. debug.setupvalue(env.Reload, "Spread", math.huge)
  679. Settings.Set("MachinePistolFunc", Func)
  680. local Mouse = Utils.GetPlayer():GetMouse()
  681. local HookEnabled = false
  682. Mouse.Button1Down:connect(function()
  683. Settings.Set("MachinePistolHook", true)
  684. end)
  685. Mouse.Button1Up:connect(function()
  686. Settings.Set("MachinePistolHook", false)
  687. end)
  688. MachinePistolDebounce = true
  689. end
  690. end
  691. end
  692. end
  693. end
  694.  
  695. SpeedPlus.Callback = function()
  696. Settings.SetSaved("WalkSpeed", Settings.GetSaved("WalkSpeed") + 20)
  697. if Settings.Get("WalkSpeedEnabled") then
  698. Bypass.WalkSpeed()
  699. end
  700. end
  701.  
  702. SpeedMinus.Callback = function()
  703. if (0 > Settings.GetSaved("WalkSpeed") - 20) then return end
  704. Settings.SetSaved("WalkSpeed", Settings.GetSaved("WalkSpeed") - 20)
  705. if Settings.Get("WalkSpeedEnabled") then
  706. Bypass.WalkSpeed()
  707. end
  708. end
  709.  
  710. SuperJumpPlus.Callback = function()
  711. Settings.SetSaved("JumpPower", Settings.GetSaved("JumpPower") + 20)
  712. if Settings.Get("JumpPowerEnabled") then
  713. Bypass.JumpPower()
  714. end
  715. end
  716.  
  717. SuperJumpMinus.Callback = function()
  718. if (0 > Settings.GetSaved("JumpPower") - 20) then return end
  719. Settings.SetSaved("JumpPower", Settings.GetSaved("JumpPower") - 20)
  720. if Settings.Get("JumpPowerEnabled") then
  721. Bypass.JumpPower()
  722. end
  723. end
  724.  
  725. for I,V in pairs(Settings.GetSaved("Active")) do
  726. if V then
  727. Menu.EmulateToggle(I)
  728. end
  729. end
  730.  
  731. for I,V in pairs(Settings.GetSaved("KeyBinds")) do
  732. Menu.EmulateKeyBind(I, Enum.KeyCode[V])
  733. end
  734.  
  735. spawn(function()
  736. while wait(5) do
  737. local RealKeyBinds = {}
  738. for I,V in pairs(Menu.GetKeyBinds()) do
  739. RealKeyBinds[I] = V["Key"].Name
  740. end
  741. Settings.SetSaved("KeyBinds", RealKeyBinds)
  742. Settings.SetSaved("Active", Menu.GetActive())
  743. end
  744. end)
  745. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement