DontDoItIDareU

CB:RO Script

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