Advertisement
Pozu2

COUNTER BLOX ESP AND MORE

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