Advertisement
Guest User

Counter Blox Roblox Offensive

a guest
Jun 23rd, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. --[[
  2. CONTROLS:
  3. ESP - Backslash
  4. Aimbot - Right Alt or Capslock
  5. Spinbot - Right Alt
  6. ]]
  7.  
  8. do --SIGHT
  9. local plr = game.Players.LocalPlayer
  10. local allsguis = {}
  11.  
  12. local enabled = false
  13.  
  14. local dohax = function(lbplr)
  15. wait() --make sure the character exists
  16. if not lbplr.Character then return end
  17. for _,obj in next,lbplr.Character:children() do
  18. if obj:IsA("BasePart") then
  19. local sguis = {}
  20. local snew = function(...)
  21. for _,face in next,{...} do
  22. local sgui = Instance.new("SurfaceGui",obj)
  23. sgui.Enabled = enabled
  24. sgui.AlwaysOnTop = true
  25. sgui.Face = face
  26. table.insert(sguis,sgui)
  27. sgui.AncestryChanged:connect(function()
  28. for i,v in next,sguis do
  29. if v == sgui then
  30. table.remove(sguis,i)
  31. sgui:destroy()
  32. end
  33. end
  34. end)
  35. end
  36. end
  37. snew("Front", "Back", "Left", "Right", "Top", "Bottom")
  38. for _,sgui in next,sguis do
  39. local sframe = Instance.new("Frame",sgui)
  40. sframe.Size = UDim2.new(1,0,1,0)
  41. sframe.BorderSizePixel = 0
  42. sframe.BackgroundTransparency = .5
  43. sframe.BackgroundColor3 = lbplr.TEEM.Value == plr.TEEM.Value and BrickColor.new("Really blue").Color or BrickColor.new("Really red").Color
  44. end
  45. table.insert(allsguis,sguis)
  46. end
  47. end
  48. end
  49.  
  50. local connectPlayer = function(lbplr)
  51. if lbplr ~= plr then
  52. dohax(lbplr)
  53. lbplr.CharacterAdded:connect(function(char)
  54. dohax(lbplr)
  55. end)
  56. end
  57. end
  58.  
  59. for _,v in next,game.Players:GetPlayers() do
  60. connectPlayer(v)
  61. end
  62.  
  63. game.Players.PlayerAdded:connect(function(p)
  64. connectPlayer(p)
  65. end)
  66.  
  67. game:GetService("UserInputService").InputBegan:connect(function(input)
  68. if input.KeyCode == Enum.KeyCode.BackSlash then
  69. enabled = not enabled
  70. for _,v in next,allsguis do
  71. for __,vv in next,v do
  72. vv.Enabled = enabled
  73. end
  74. end
  75. end
  76. end)
  77. end
  78.  
  79. do --AIM
  80. local cam = game:GetService("Workspace").CurrentCamera
  81. local plrs = game:GetService("Players"):GetPlayers()
  82. local lplr = game:GetService("Players").LocalPlayer
  83.  
  84. local aiming = false
  85. local dolerp = true
  86.  
  87. game:GetService("RunService"):BindToRenderStep("UpdateCamera", Enum.RenderPriority.Camera.Value, function()
  88. if not aiming or not lplr.Character or not lplr.Character:FindFirstChild("Head") then return end
  89. local cchar,cdist
  90. for _,plr in next,plrs do
  91. if plr ~= lplr and plr.TEEM.Value ~= lplr.TEEM.Value then
  92. local char = plr.Character
  93. if char and char:FindFirstChild("Head") then
  94. local hit = workspace:FindPartOnRay(Ray.new((cam.CFrame*CFrame.new(0,0,-5)).p, char.Head.Position - (cam.CFrame*CFrame.new(0,0,-5)).p))
  95. if hit and hit.Parent and hit.Parent == char or hit.Parent.Parent == char then
  96. local dist = (char.Head.Position - lplr.Character.Head.Position).magnitude
  97. if cdist == nil or dist < cdist then
  98. cdist = dist
  99. cchar = char
  100. end
  101. end
  102. end
  103. end
  104. end
  105. if not cchar then return end
  106. cam.CFrame = dolerp and cam.CFrame:lerp(CFrame.new(cam.CFrame.p, cchar.Head.CFrame.p), .15) or CFrame.new(cam.CFrame.p, cchar.Head.CFrame.p)
  107. end)
  108.  
  109. game.Players.PlayerAdded:connect(function(plr)
  110. table.insert(plrs,plr)
  111. end)
  112.  
  113. game.Players.PlayerRemoving:connect(function(plr)
  114. for i,v in next,plrs do
  115. if v == plr then
  116. table.remove(plrs,i)
  117. end
  118. end
  119. end)
  120.  
  121. game:GetService("UserInputService").InputBegan:connect(function(input)
  122. if input.KeyCode == Enum.KeyCode.CapsLock then
  123. aiming = not aiming
  124. elseif input.KeyCode == Enum.KeyCode.RightBracket then
  125. dolerp = true
  126. elseif input.KeyCode == Enum.KeyCode.LeftBracket then
  127. dolerp = false
  128. end
  129. end)
  130. end
  131.  
  132. do --OMGWHAT
  133. local plr = game.Players.LocalPlayer
  134. game:GetService("UserInputService").InputBegan:connect(function(input)
  135. if input.KeyCode == Enum.KeyCode.RightAlt then
  136. if not plr.Character or not plr.Character:FindFirstChild("Head") then return end
  137. for _,v in next,game.Players:children() do
  138. if v ~= plr and v.TEEM.Value ~= plr.TEEM.Value and v.Character and v.Character:FindFirstChild("Head") and v.Character:FindFirstChild("Torso") and v.Character.Torso:FindFirstChild("Neck") then
  139. local char = v.Character
  140. local head = char.Head
  141. char.Torso["Neck"]:destroy()
  142. head.Anchored = true
  143. head.CanCollide = false
  144. head.Transparency = 1
  145. head.face:destroy()
  146. for _,vv in next,head:children() do
  147. if vv:IsA("SurfaceGui") then
  148. vv:destroy()
  149. end
  150. end
  151. local rs = game:GetService("RunService").RenderStepped:connect(function()
  152. head.CFrame = plr.Character.Head.CFrame*CFrame.new(0,0,-5)
  153. end)
  154. head.AncestryChanged:connect(function()
  155. rs:disconnect()
  156. end)
  157. plr.Character.Head.AncestryChanged:connect(function()
  158. rs:disconnect()
  159. end)
  160. end
  161. end
  162. end
  163. end)
  164. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement