Scriptorz5

Counter Blox Script [PATCHED]

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