FuryDaGod

CBRO AIMBOT SCRIPT

Sep 14th, 2017
41,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | None | 0 0
  1. --[[
  2. Release by Rain on V3rmillion
  3. Please leave this header intact to encourage future script releases!
  4.  
  5. Name: cbrohacks.lua
  6. Author: Autumn
  7. Desc: Hacky hacks for bad FPS players like me
  8.  
  9. Enjoy!
  10.  
  11. Usage:
  12. - Press Backslash to toggle the ability to see players through walls ("chams")
  13. - Press Caps Lock to toggle auto-aiming ("aimbot")
  14. - Press Right Alt once then start firing blindly in any direction to kill and make the server angry ("opk")
  15.  
  16. Aimbot Options:
  17. - Press Left Bracket to switch to instant aiming mode (extremely accurate, very obvious)
  18. - Press Right Bracket to switch to smooth aiming mode (eased camera movement, very natural)
  19. ]]
  20.  
  21. do --SIGHT
  22. local plr = game.Players.LocalPlayer
  23. local allsguis = {}
  24.  
  25. local enabled = false
  26.  
  27. local dohax = function(lbplr)
  28. wait() --make sure the character exists
  29. if not lbplr.Character then return end
  30. for _,obj in next,lbplr.Character:children() do
  31. if obj:IsA("BasePart") then
  32. local sguis = {}
  33. local snew = function(...)
  34. for _,face in next,{...} do
  35. local sgui = Instance.new("SurfaceGui",obj)
  36. sgui.Enabled = enabled
  37. sgui.AlwaysOnTop = true
  38. sgui.Face = face
  39. table.insert(sguis,sgui)
  40. sgui.AncestryChanged:connect(function()
  41. for i,v in next,sguis do
  42. if v == sgui then
  43. table.remove(sguis,i)
  44. sgui:destroy()
  45. end
  46. end
  47. end)
  48. end
  49. end
  50. snew("Front", "Back", "Left", "Right", "Top", "Bottom")
  51. for _,sgui in next,sguis do
  52. local sframe = Instance.new("Frame",sgui)
  53. sframe.Size = UDim2.new(1,0,1,0)
  54. sframe.BorderSizePixel = 0
  55. sframe.BackgroundTransparency = .5
  56. sframe.BackgroundColor3 = lbplr.TEEM.Value == plr.TEEM.Value and BrickColor.new("Really blue").Color or BrickColor.new("Really red").Color
  57. end
  58. table.insert(allsguis,sguis)
  59. end
  60. end
  61. end
  62.  
  63. local connectPlayer = function(lbplr)
  64. if lbplr ~= plr then
  65. dohax(lbplr)
  66. lbplr.CharacterAdded:connect(function(char)
  67. dohax(lbplr)
  68. end)
  69. end
  70. end
  71.  
  72. for _,v in next,game.Players:GetPlayers() do
  73. connectPlayer(v)
  74. end
  75.  
  76. game.Players.PlayerAdded:connect(function(p)
  77. connectPlayer(p)
  78. end)
  79.  
  80. game:GetService("UserInputService").InputBegan:connect(function(input)
  81. if input.KeyCode == Enum.KeyCode.BackSlash then
  82. enabled = not enabled
  83. for _,v in next,allsguis do
  84. for __,vv in next,v do
  85. vv.Enabled = enabled
  86. end
  87. end
  88. end
  89. end)
  90. end
  91.  
  92. do --AIM
  93. local cam = game:GetService("Workspace").CurrentCamera
  94. local plrs = game:GetService("Players"):GetPlayers()
  95. local lplr = game:GetService("Players").LocalPlayer
  96.  
  97. local aiming = false
  98. local dolerp = true
  99.  
  100. game:GetService("RunService"):BindToRenderStep("UpdateCamera", Enum.RenderPriority.Camera.Value, function()
  101. if not aiming or not lplr.Character or not lplr.Character:FindFirstChild("Head") then return end
  102. local cchar,cdist
  103. for _,plr in next,plrs do
  104. if plr ~= lplr and plr.TEEM.Value ~= lplr.TEEM.Value then
  105. local char = plr.Character
  106. if char and char:FindFirstChild("Head") then
  107. 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))
  108. if hit and hit.Parent and hit.Parent == char or hit.Parent.Parent == char then
  109. local dist = (char.Head.Position - lplr.Character.Head.Position).magnitude
  110. if cdist == nil or dist < cdist then
  111. cdist = dist
  112. cchar = char
  113. end
  114. end
  115. end
  116. end
  117. end
  118. if not cchar then return end
  119. 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)
  120. end)
  121.  
  122. game.Players.PlayerAdded:connect(function(plr)
  123. table.insert(plrs,plr)
  124. end)
  125.  
  126. game.Players.PlayerRemoving:connect(function(plr)
  127. for i,v in next,plrs do
  128. if v == plr then
  129. table.remove(plrs,i)
  130. end
  131. end
  132. end)
  133.  
  134. game:GetService("UserInputService").InputBegan:connect(function(input)
  135. if input.KeyCode == Enum.KeyCode.CapsLock then
  136. aiming = not aiming
  137. elseif input.KeyCode == Enum.KeyCode.RightBracket then
  138. dolerp = true
  139. elseif input.KeyCode == Enum.KeyCode.LeftBracket then
  140. dolerp = false
  141. end
  142. end)
  143. end
  144.  
  145. do --OMGWHAT
  146. local plr = game.Players.LocalPlayer
  147. game:GetService("UserInputService").InputBegan:connect(function(input)
  148. if input.KeyCode == Enum.KeyCode.RightAlt then
  149. if not plr.Character or not plr.Character:FindFirstChild("Head") then return end
  150. for _,v in next,game.Players:children() do
  151. 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
  152. local char = v.Character
  153. local head = char.Head
  154. char.Torso["Neck"]:destroy()
  155. head.Anchored = true
  156. head.CanCollide = false
  157. head.Transparency = 1
  158. head.face:destroy()
  159. for _,vv in next,head:children() do
  160. if vv:IsA("SurfaceGui") then
  161. vv:destroy()
  162. end
  163. end
  164. local rs = game:GetService("RunService").RenderStepped:connect(function()
  165. head.CFrame = plr.Character.Head.CFrame*CFrame.new(0,0,-5)
  166. end)
  167. head.AncestryChanged:connect(function()
  168. rs:disconnect()
  169. end)
  170. plr.Character.Head.AncestryChanged:connect(function()
  171. rs:disconnect()
  172. end)
  173. end
  174. end
  175. end
  176. end)
  177. end
Add Comment
Please, Sign In to add comment