Advertisement
scripterhaxer

CB test

Jun 2nd, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.39 KB | None | 0 0
  1. local Grab = game:GetService'ReplicatedStorage':WaitForChild'Grab';
  2.  
  3. local setreadonly = setreadonly or make_writeable;
  4. local getupvalues = getupvalues or debug.getupvalues or secret953;
  5. local setupvalue = setupvalue or debug.setupvalue or secret500;
  6.  
  7. local MT = getrawmetatable(game);
  8. setreadonly(MT, false);
  9.  
  10. local Index = MT.__index;
  11. local Namecall = MT.__namecall;
  12.  
  13. print'MT bypass';
  14.  
  15. MT.__namecall = function(self, ...)
  16. local Passed = {...};
  17. local Method = table.remove(Passed, #Passed);
  18. if Method == 'Kick' then
  19. return wait(9e9);
  20. elseif Method == 'InvokeServer' and self == Grab then
  21. return 'hi it\'s me, the one and only';
  22. end;
  23. return Namecall(self, ...);
  24. end;
  25.  
  26. warn'Done';
  27. print'REnv bypass';
  28.  
  29. local wait = wait;
  30. getrenv().wait = function(T)
  31. if T == 0.15 then
  32. local Success, Returned = pcall(getupvalues, 2);
  33. if Success then
  34. for i, v in next, Returned do
  35. if v == Grab then
  36. return wait(9e9);
  37. end;
  38. end;
  39. end;
  40. end;
  41. return wait(T);
  42. end;
  43.  
  44. warn'Done';
  45. print'Reg bypass';
  46.  
  47. local getreg = getreg or getregistry or debug.getregistry;
  48. local Char;
  49. local Plr;
  50.  
  51. for i, v in next, getreg() do
  52. if type(v) == 'function' then
  53. local Success, Returned = pcall(getupvalues, v);
  54. if Success and Returned then
  55. if not Char and Returned.setupChar then
  56. setupvalue(v, 'setupChar', function()end);
  57. warn'Done 1';
  58. Char = true;
  59. elseif not Plr and Returned.setupPlr then
  60. setupvalue(v, 'setupPlr', function()end);
  61. warn'Done 2';
  62. Plr = true;
  63. end;
  64. end;
  65. end;
  66. end;
  67. --[[
  68. █▀▄▀█ █▀▀█ █▀▀▄ █▀▀ █▀▀▄ █░░█ █▀▀ █▀▀█ █▀▀ ▀▀█▀▀ █▀▀█ █░░ ░░▀ █░░█ █▀▀▄ █░█ ░▀░ █▀▀
  69. █░▀░█ █▄▄█ █░░█ █▀▀ █▀▀▄ █▄▄█ █░░ █▄▄▀ ▀▀█ ░░█░░ █▄▄█ █░░ ░░█ █░░█ █░░█ █▀▄ ▀█▀ █▀▀
  70. ▀░░░▀ ▀░░▀ ▀▀▀░ ▀▀▀ ▀▀▀░ ▄▄▄█ ▀▀▀ ▀░▀▀ ▀▀▀ ░░▀░░ ▀░░▀ ▀▀▀ █▄█ ░▀▀▀ ▀░░▀ ▀░▀ ▀▀▀ ▀▀▀
  71. Dm me at Chebureki#5214 for help
  72. --]]
  73.  
  74. --// Settings
  75. local settings = {}
  76. settings.toggleButton = "RightShift" --//Keys are at https://wiki.roblox.com/index.php?title=API:Enum/KeyCode
  77. settings.BlurFactor = 20 --// 0-100
  78. settings.Color = Color3.fromRGB(148,0,211)
  79. --//
  80.  
  81. --//
  82. local options = {}
  83. options.Chams = false
  84. options.Aimbot = false
  85. options.RenderTeam = false
  86. options.EnemyColor = Color3.new(1,0,0)
  87. options.AllyColor = Color3.new(0,0,1)
  88. options.SeeThroughWalls = false
  89. options.NoRecoil = false
  90. options.Key = "CapsLock"
  91. options.SpeedEnabled = false
  92. options.Speed = 100
  93. options.NoClip = false
  94. options.AimTarget = "Head"
  95. --//
  96.  
  97. if getsenv ~= nil then
  98. orignalSpeed = getsenv(game.Players.LocalPlayer.PlayerGui.Client).speedupdate
  99. newSpeed = function()
  100. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = options.Speed
  101. end
  102. end
  103.  
  104. local Targets = {
  105. "HumanoidRootPart",
  106. "LeftHand",
  107. "LeftLowerArm",
  108. "LeftUpperArm",
  109. "RightHand",
  110. "RightLowerArm",
  111. "RightUpperArm",
  112. "UpperTorso",
  113. "LeftFoot",
  114. "LeftLowerLeg",
  115. "LeftUpperLeg",
  116. "RightFoot",
  117. "RightLowerLeg",
  118. "RightUpperLeg",
  119. "LowerTorso",
  120. "Head"
  121. }
  122. local camera = workspace.CurrentCamera
  123. local ScreenGui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  124. local ESPLocation = Instance.new("Folder",ScreenGui)
  125. ScreenGui.Enabled = false
  126. ScreenGui.ResetOnSpawn = false
  127. local Blur = Instance.new("BlurEffect",ScreenGui)
  128. Blur.Size = settings.BlurFactor
  129.  
  130. game:GetService("UserInputService").InputBegan:Connect(function(key)
  131. if key.KeyCode == Enum.KeyCode[settings.toggleButton] then
  132. ScreenGui.Enabled = not ScreenGui.Enabled
  133. if ScreenGui.Enabled then
  134. Blur.Parent = game.Lighting
  135. else
  136. Blur.Parent = ScreenGui
  137. end
  138. end
  139. end)
  140.  
  141. function createHeader(Title,x,y)
  142. local Header = Instance.new("TextButton")
  143. local List = Instance.new("Frame")
  144. Header.Name = Title
  145. Header.Parent = ScreenGui
  146. Header.BackgroundColor3 = settings.Color
  147. Header.BorderSizePixel = 0
  148. Header.Draggable = true
  149. Header.Position = UDim2.new(0, x, 0, y)
  150. Header.Size = UDim2.new(0, 245, 0, 35)
  151. Header.ZIndex = 2
  152. Header.Font = Enum.Font.SourceSans
  153. Header.Text = Title
  154. Header.TextColor3 = Color3.new(1, 1, 1)
  155. Header.TextSize = 21
  156.  
  157. List.Name = "List"
  158. List.Parent = Header
  159. List.BackgroundColor3 = Color3.new(0, 0, 0)
  160. List.BackgroundTransparency = 0.60000002384186
  161. List.BorderSizePixel = 0
  162. List.ClipsDescendants = true
  163. List.Position = UDim2.new(0.0122448979, 0, 0, 0)
  164. List.Size = UDim2.new(0, 239, 0, 35)
  165.  
  166. Header.MouseButton1Click:Connect(function()
  167. if List.Size.Y.Offset <= 35 then
  168. List:TweenSize(UDim2.new(0,239,0,35+30*#List:GetChildren()),Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.7)
  169. else
  170. List:TweenSize(UDim2.new(0,239,0,30),Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.7)
  171. end
  172. end)
  173.  
  174. return Header
  175. end
  176.  
  177. function addButton(Title,Header,func)
  178. local Button = Instance.new("TextButton")
  179. Button.Name = "Button"
  180. Button.Parent = Header.List
  181. Button.BackgroundColor3 = Color3.new(1, 1, 1)
  182. Button.BackgroundTransparency = 1
  183. Button.Position = UDim2.new(0, 0, 0, 5+30*#Header.List:GetChildren())
  184. Button.Size = UDim2.new(0, 239, 0, 30)
  185. Button.Font = Enum.Font.SourceSansBold
  186. Button.Text = " > "..Title
  187. Button.TextColor3 = Color3.new(1, 1, 1)
  188. Button.TextSize = 25
  189. Button.TextXAlignment = Enum.TextXAlignment.Left
  190. if func ~= nil then
  191. Button.MouseButton1Click:Connect(func)
  192. end
  193.  
  194. return Button
  195. end
  196.  
  197. function addTextBox(Header,PlaceHolderText)
  198. local Box = Instance.new("TextBox")
  199. Box.Name = "TextBox"
  200. Box.Parent = Header.List
  201. Box.BackgroundColor3 = Color3.new(0, 0, 0)
  202. Box.BackgroundTransparency = 0.8
  203. Box.Position = UDim2.new(0, 0, 0, 5+30*#Header.List:GetChildren())
  204. Box.Size = UDim2.new(0, 239, 0, 29)
  205. Box.Font = Enum.Font.SourceSansBold
  206. Box.Text = ""
  207. Box.PlaceholderText = PlaceHolderText
  208. Box.TextColor3 = Color3.new(1, 1, 1)
  209. Box.TextSize = 25
  210. Box.TextXAlignment = Enum.TextXAlignment.Center
  211. return Box
  212. end
  213.  
  214. function convertToColor3(input)
  215. local temp = {}
  216. for number in input:gmatch(",?%d+,?")do
  217. number = number:gsub(",","")
  218. table.insert(temp,number)
  219. end
  220. if #temp ~= 3 then return nil end
  221. return(Color3.fromRGB(unpack(temp)))
  222. end
  223.  
  224. --//The Header is 245 pixels wide
  225.  
  226. local ESP = createHeader("WallHack",100,100)
  227. local AIM = createHeader("Aimbot",375,100)
  228. local MISC = createHeader("Misc",650,100)
  229.  
  230. --//ToggleButtons
  231. local enableEsp = addButton("Enable Chams",ESP)
  232. enableEsp.MouseButton1Click:Connect(function()
  233. options.Chams = not options.Chams
  234. if options.Chams then
  235. enableEsp.TextColor3 = Color3.new(0,1,0)
  236. else
  237. enableEsp.TextColor3 = Color3.new(1,1,1)
  238. end
  239. ESP()
  240. end)
  241.  
  242. local RenderTeam = addButton("Render Team",ESP)
  243. RenderTeam.MouseButton1Click:Connect(function()
  244. options.RenderTeam = not options.RenderTeam
  245. if options.RenderTeam then
  246. RenderTeam.TextColor3 = Color3.new(0,1,0)
  247. else
  248. RenderTeam.TextColor3 = Color3.new(1,1,1)
  249. end
  250. ESP()
  251. end)
  252.  
  253. local SeeThroughWalls = addButton("See through walls",ESP)
  254. SeeThroughWalls.MouseButton1Click:Connect(function()
  255. options.SeeThroughWalls = not options.SeeThroughWalls
  256. if options.SeeThroughWalls then
  257. SeeThroughWalls.TextColor3 = Color3.new(0,1,0)
  258. else
  259. SeeThroughWalls.TextColor3 = Color3.new(1,1,1)
  260. end
  261. ESP()
  262. end)
  263.  
  264. local ChamsEnemyColor = addTextBox(ESP,"Enemy Color RGB")
  265. ChamsEnemyColor.Changed:Connect(function(property)
  266. if property ~= "Text" then return end
  267.  
  268. if convertToColor3(ChamsEnemyColor.Text) ~= nil then
  269. options.EnemyColor = convertToColor3(ChamsEnemyColor.Text)
  270. ESP()
  271. end
  272. end)
  273.  
  274. local ChamsAllyColor = addTextBox(ESP,"Ally Color RGB")
  275. ChamsAllyColor.Changed:Connect(function(property)
  276. if property ~= "Text" then return end
  277.  
  278. if convertToColor3(ChamsAllyColor.Text) ~= nil then
  279. options.AllyColor = convertToColor3(ChamsAllyColor.Text)
  280. ESP()
  281. end
  282. end)
  283.  
  284.  
  285. local Aimbot = addButton("Enabled",AIM)
  286. Aimbot.MouseButton1Click:Connect(function()
  287. options.Aimbot = not options.Aimbot
  288. if options.Aimbot then
  289. Aimbot.TextColor3 = Color3.new(0,1,0)
  290. else
  291. Aimbot.TextColor3 = Color3.new(1,1,1)
  292. end
  293. end)
  294.  
  295. local NoRecoil = addButton("No Recoil",AIM)
  296. NoRecoil.MouseButton1Click:Connect(function()
  297. options.NoRecoil = not options.NoRecoil
  298. if options.NoRecoil then
  299. NoRecoil.TextColor3 = Color3.new(0,1,0)
  300. else
  301. NoRecoil.TextColor3 = Color3.new(1,1,1)
  302. end
  303. end)
  304.  
  305. local InputKey = addTextBox(AIM,"Key")
  306. InputKey.Changed:Connect(function(property)
  307. if property ~= "Text" then return end
  308.  
  309. local success = pcall(function()
  310. local test = Enum.KeyCode[InputKey.Text]
  311. end)
  312.  
  313. if success or InputKey.Text == "M1" or InputKey.Text == "M2" then
  314. options.Key = InputKey.Text
  315. end
  316. end)
  317.  
  318. local AimTarget = addTextBox(AIM,"Target")
  319. AimTarget.Changed:Connect(function(property)
  320. if property ~= "Text" then return end
  321.  
  322. local inTable = false
  323.  
  324. for _,target in pairs(Targets)do
  325. if AimTarget.Text == target then
  326. inTable = true
  327. break
  328. end
  329. end
  330.  
  331. if inTable then
  332. options.AimTarget = AimTarget.Text
  333. end
  334. end)
  335.  
  336. local SpeedHack = addButton("Speed-Hack",MISC)
  337. SpeedHack.MouseButton1Click:Connect(function()
  338. options.SpeedEnabled = not options.SpeedEnabled
  339. if options.SpeedEnabled then
  340. getsenv(game.Players.LocalPlayer.PlayerGui.Client).speedupdate = newSpeed
  341. SpeedHack.TextColor3 = Color3.new(0,1,0)
  342. else
  343. getsenv(game.Players.LocalPlayer.PlayerGui.Client).speedupdate = orignalSpeed
  344. SpeedHack.TextColor3 = Color3.new(1,1,1)
  345. end
  346. end)
  347.  
  348. local WalkSpeedInput = addTextBox(MISC,"Speed")
  349. WalkSpeedInput.Changed:Connect(function(property)
  350. if property ~= "Text" then return end
  351.  
  352. if tonumber(WalkSpeedInput) ~= nil then
  353. options.Speed = tonumber(WalkSpeedInput)
  354. end
  355. end)
  356.  
  357. local NoClip = addButton("NoClip",MISC)
  358. NoClip.MouseButton1Click:Connect(function()
  359. options.NoClip = not options.NoClip
  360. if options.NoClip then
  361. NoClip.TextColor3 = Color3.new(0,1,0)
  362. for i,v in pairs(workspace.Map:GetDescendants())do
  363. if v:IsA("BasePart") then
  364. local Origin = v.Parent
  365. v.Parent = game.Workspace.Ray_Ignore
  366. spawn(function()
  367. NoClip.MouseButton1Click:Wait()
  368. v.Parent = Origin
  369. end)
  370. end
  371. end
  372. else
  373. NoClip.TextColor3 = Color3.new(1,1,1)
  374. end
  375. end)
  376. --//Input
  377. game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()
  378. if options.Key == "M1" then
  379. currentFrame = nil
  380. pressed = true
  381. end
  382. end)
  383.  
  384. game.Players.LocalPlayer:GetMouse().Button2Down:Connect(function()
  385. if options.Key == "M2" then
  386. currentFrame = nil
  387. pressed = true
  388. end
  389. end)
  390.  
  391. game.Players.LocalPlayer:GetMouse().Button1Up:Connect(function()
  392. if options.Key == "M1" then
  393. pressed = false
  394. end
  395. end)
  396.  
  397. game.Players.LocalPlayer:GetMouse().Button2Up:Connect(function()
  398. if options.Key == "M2" then
  399. pressed = false
  400. end
  401. end)
  402.  
  403.  
  404.  
  405. game:GetService("UserInputService").InputBegan:connect(function(key)
  406. pcall(function()
  407. if key.KeyCode == Enum.KeyCode[options.Key] then
  408. currentFrame = nil
  409. pressed = true
  410. end
  411. end)
  412. end)
  413.  
  414. game:GetService("UserInputService").InputEnded:connect(function(key)
  415. pcall(function()
  416. if key.KeyCode == Enum.KeyCode[options.Key] then
  417. pressed = false
  418. end
  419. end)
  420. end)
  421.  
  422. --//
  423.  
  424.  
  425. function espPart(part,player)
  426. local esp = Instance.new("BoxHandleAdornment",ESPLocation)
  427. esp.Adornee = part
  428. if options.SeeThroughWalls then
  429. esp.AlwaysOnTop = true
  430. end
  431. esp.ZIndex = 1
  432. if options.Chams and(player.Team ~= game.Players.LocalPlayer.Team or options.RenderTeam) then
  433. esp.Transparency = 0.5
  434. else
  435. esp.Transparency = 1
  436. end
  437. esp.Size = part.Size + Vector3.new(0.1,0.1,0.1)
  438. if player.Team == game.Players.LocalPlayer.Team then
  439. esp.Color3 = options.AllyColor
  440. else
  441. esp.Color3 = options.EnemyColor
  442. end
  443.  
  444. esp.MouseEnter:Connect(function()
  445. if player.Team ~= game.Players.LocalPlayer.Team then
  446. currentFrame = esp
  447. end
  448. end)
  449.  
  450. esp.MouseLeave:Connect(function()
  451. if not pressed then
  452. currentFrame = nil
  453. end
  454. end)
  455.  
  456. player.CharacterRemoving:Connect(function()
  457. esp:Destroy()
  458. end)
  459.  
  460. player.Team.PlayerRemoved:Connect(function(RemovedPlayer)
  461. if RemovedPlayer ~= player and RemovedPlayer ~= game.Players.LocalPlayer then
  462. return
  463. else
  464. if player.Team == game.Players.LocalPlayer.Team then
  465. esp.Color3 = options.AllyColor
  466. else
  467. esp.Color3 = options.EnemyColor
  468. end
  469. end
  470. end)
  471. end
  472.  
  473. function espPlayer(player)
  474. if player.Character ~= nil then
  475. for _,part in pairs(player.Character:GetChildren())do
  476. if part:IsA("BasePart")then
  477. espPart(part,player)
  478. end
  479. end
  480. end
  481. end
  482.  
  483. function ESP()
  484. ESPLocation:ClearAllChildren()
  485. for _,player in pairs(game.Players:GetPlayers())do
  486. if player ~= game.Players.LocalPlayer then
  487. espPlayer(player)
  488. end
  489. end
  490. end
  491.  
  492. game.workspace.Camera.Changed:Connect(function()
  493. if options.NoRecoil then
  494. pcall(function() getsenv(game.Players.LocalPlayer.PlayerGui.Client).resetaccuracy() end)
  495. end
  496.  
  497. if pressed and options.Aimbot then
  498. if currentFrame ~= nil then
  499. if currentFrame.Adornee ~= nil and currentFrame.Adornee:FindFirstAncestorWhichIsA("Model"):FindFirstChild(options.AimTarget) then
  500. local target = currentFrame.Adornee:FindFirstAncestorWhichIsA("Model"):FindFirstChild(options.AimTarget)
  501. camera.CFrame = CFrame.new(camera.CFrame.p,target.CFrame.p+Vector3.new(0.01,0.01,0.01))
  502. end
  503. end
  504. end
  505. end)
  506.  
  507.  
  508.  
  509. local function WaitUntilCharacterLoaded(Char)
  510. for _,Part in pairs(Targets)do
  511. Char:WaitForChild(Part)
  512. end
  513. end
  514.  
  515. game.Players.PlayerAdded:Connect(function(Player)
  516. Player.CharacterAdded:Connect(function(Char)
  517. WaitUntilCharacterLoaded(Char)
  518. espPlayer(Player)
  519. end)
  520. end)
  521.  
  522. for _,Player in pairs(game.Players:GetPlayers())do
  523. Player.CharacterAdded:Connect(function(Char)
  524. WaitUntilCharacterLoaded(Char)
  525. espPlayer(Player)
  526. end)
  527. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement