Cookiemonstr

CB:RO AIMBOT/WALLHACK/ESP - HACK SCRIPT EXPLOIT

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