Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.04 KB | None | 0 0
  1. do --SIGHT
  2. local plr = game.Players.LocalPlayer
  3. local allsguis = {}
  4.  
  5. local enabled = false
  6.  
  7. local dohax = function(lbplr)
  8. wait() --make sure the character exists
  9. if not lbplr.Character then return end
  10. for _,obj in next,lbplr.Character:children() do
  11. if obj:IsA("BasePart") then
  12. local sguis = {}
  13. local snew = function(...)
  14. for _,face in next,{...} do
  15. local sgui = Instance.new("SurfaceGui",obj)
  16. sgui.Enabled = enabled
  17. sgui.AlwaysOnTop = true
  18. sgui.Face = face
  19. table.insert(sguis,sgui)
  20. sgui.AncestryChanged:connect(function()
  21. for i,v in next,sguis do
  22. if v == sgui then
  23. table.remove(sguis,i)
  24. sgui:destroy()
  25. end
  26. end
  27. end)
  28. end
  29. end
  30. snew("Front", "Back", "Left", "Right", "Top", "Bottom")
  31. for _,sgui in next,sguis do
  32. local sframe = Instance.new("Frame",sgui)
  33. sframe.Size = UDim2.new(1,0,1,0)
  34. sframe.BorderSizePixel = 0
  35. sframe.BackgroundTransparency = .5
  36. sframe.BackgroundColor3 = lbplr.TEEM.Value == plr.TEEM.Value and BrickColor.new("Really blue").Color or BrickColor.new("Really red").Color
  37. end
  38. table.insert(allsguis,sguis)
  39. end
  40. end
  41. end
  42.  
  43. local connectPlayer = function(lbplr)
  44. if lbplr ~= plr then
  45. dohax(lbplr)
  46. lbplr.CharacterAdded:connect(function(char)
  47. dohax(lbplr)
  48. end)
  49. end
  50. end
  51.  
  52. for _,v in next,game.Players:GetPlayers() do
  53. connectPlayer(v)
  54. end
  55.  
  56. game.Players.PlayerAdded:connect(function(p)
  57. connectPlayer(p)
  58. end)
  59.  
  60. game:GetService("UserInputService").InputBegan:connect(function(input)
  61. if input.KeyCode == Enum.KeyCode.BackSlash then
  62. enabled = not enabled
  63. for _,v in next,allsguis do
  64. for __,vv in next,v do
  65. vv.Enabled = enabled
  66. end
  67. end
  68. end
  69. end)
  70. end
  71.  
  72. do --AIM
  73. local cam = game:GetService("Workspace").CurrentCamera
  74. local plrs = game:GetService("Players"):GetPlayers()
  75. local lplr = game:GetService("Players").LocalPlayer
  76.  
  77. local aiming = false
  78. local dolerp = true
  79.  
  80. game:GetService("RunService"):BindToRenderStep("UpdateCamera", Enum.RenderPriority.Camera.Value, function()
  81. if not aiming or not lplr.Character or not lplr.Character:FindFirstChild("Head") then return end
  82. local cchar,cdist
  83. for _,plr in next,plrs do
  84. if plr ~= lplr and plr.TEEM.Value ~= lplr.TEEM.Value then
  85. local char = plr.Character
  86. if char and char:FindFirstChild("Head") then
  87. 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))
  88. if hit and hit.Parent and hit.Parent == char or hit.Parent.Parent == char then
  89. local dist = (char.Head.Position - lplr.Character.Head.Position).magnitude
  90. if cdist == nil or dist < cdist then
  91. cdist = dist
  92. cchar = char
  93. end
  94. end
  95. end
  96. end
  97. end
  98. if not cchar then return end
  99. 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)
  100. end)
  101.  
  102. game.Players.PlayerAdded:connect(function(plr)
  103. table.insert(plrs,plr)
  104. end)
  105.  
  106. game.Players.PlayerRemoving:connect(function(plr)
  107. for i,v in next,plrs do
  108. if v == plr then
  109. table.remove(plrs,i)
  110. end
  111. end
  112. end)
  113.  
  114. game:GetService("UserInputService").InputBegan:connect(function(input)
  115. if input.KeyCode == Enum.KeyCode.CapsLock then
  116. aiming = not aiming
  117. elseif input.KeyCode == Enum.KeyCode.RightBracket then
  118. dolerp = true
  119. elseif input.KeyCode == Enum.KeyCode.LeftBracket then
  120. dolerp = false
  121. end
  122. end)
  123. end
  124.  
  125. do --OMGWHAT
  126. local plr = game.Players.LocalPlayer
  127. game:GetService("UserInputService").InputBegan:connect(function(input)
  128. if input.KeyCode == Enum.KeyCode.RightAlt then
  129. if not plr.Character or not plr.Character:FindFirstChild("Head") then return end
  130. for _,v in next,game.Players:children() do
  131. 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
  132. local char = v.Character
  133. local head = char.Head
  134. char.Torso["Neck"]:destroy()
  135. head.Anchored = true
  136. head.CanCollide = false
  137. head.Transparency = 1
  138. head.face:destroy()
  139. for _,vv in next,head:children() do
  140. if vv:IsA("SurfaceGui") then
  141. vv:destroy()
  142. end
  143. end
  144. local rs = game:GetService("RunService").RenderStepped:connect(function()
  145. head.CFrame = plr.Character.Head.CFrame*CFrame.new(0,0,-5)
  146. end)
  147. head.AncestryChanged:connect(function()
  148. rs:disconnect()
  149. end)
  150. plr.Character.Head.AncestryChanged:connect(function()
  151. rs:disconnect()
  152. end)
  153. end
  154. end
  155. end
  156. end)
  157. end
  158. RAW Paste Data
  159.  
  160. --[[
  161. Release by Rain on V3rmillion
  162. Please leave this header intact to encourage future script releases!
  163.  
  164. Name: cbrohacks.lua
  165. Author: Autumn
  166. Desc: Hacky hacks for bad FPS players like me
  167.  
  168. Enjoy!
  169.  
  170. Usage:
  171. - Press Backslash to toggle the ability to see players through walls ("chams")
  172. - Press Caps Lock to toggle auto-aiming ("aimbot")
  173. - Press Right Alt once then start firing blindly in any direction to kill and make the server angry ("opk")
  174. a
  175. Aimbot Options:
  176. - Press Left Bracket to switch to instant aiming mode (extremely accurate, very obvious)
  177. - Press Right Bracket to switch to smooth aiming mode (eased camera movement, very natural)
  178.  
  179. ]]
  180.  
  181. do --SIGHT
  182. local plr = game.Players.LocalPlayer
  183. local allsguis = {}
  184.  
  185. local enabled = false
  186.  
  187. local dohax = function(lbplr)
  188. wait() --make sure the character exists
  189. if not lbplr.Character then return end
  190. for _,obj in next,lbplr.Character:children() do
  191. if obj:IsA("BasePart") then
  192. local sguis = {}
  193. local snew = function(...)
  194. for _,face in next,{...} do
  195. local sgui = Instance.new("SurfaceGui",obj)
  196. sgui.Enabled = enabled
  197. sgui.AlwaysOnTop = true
  198. sgui.Face = face
  199. table.insert(sguis,sgui)
  200. sgui.AncestryChanged:connect(function()
  201. for i,v in next,sguis do
  202. if v == sgui then
  203. table.remove(sguis,i)
  204. sgui:destroy()
  205. end
  206. end
  207. end)
  208. end
  209. end
  210. snew("Front", "Back", "Left", "Right", "Top", "Bottom")
  211. for _,sgui in next,sguis do
  212. local sframe = Instance.new("Frame",sgui)
  213. sframe.Size = UDim2.new(1,0,1,0)
  214. sframe.BorderSizePixel = 0
  215. sframe.BackgroundTransparency = .5
  216. sframe.BackgroundColor3 = lbplr.TEEM.Value == plr.TEEM.Value and BrickColor.new("Really blue").Color or BrickColor.new("Really red").Color
  217. end
  218. table.insert(allsguis,sguis)
  219. end
  220. end
  221. end
  222.  
  223. local connectPlayer = function(lbplr)
  224. if lbplr ~= plr then
  225. dohax(lbplr)
  226. lbplr.CharacterAdded:connect(function(char)
  227. dohax(lbplr)
  228. end)
  229. end
  230. end
  231.  
  232. for _,v in next,game.Players:GetPlayers() do
  233. connectPlayer(v)
  234. end
  235.  
  236. game.Players.PlayerAdded:connect(function(p)
  237. connectPlayer(p)
  238. end)
  239.  
  240. game:GetService("UserInputService").InputBegan:connect(function(input)
  241. if input.KeyCode == Enum.KeyCode.BackSlash then
  242. enabled = not enabled
  243. for _,v in next,allsguis do
  244. for __,vv in next,v do
  245. vv.Enabled = enabled
  246. end
  247. end
  248. end
  249. end)
  250. end
  251.  
  252. do --AIM
  253. local cam = game:GetService("Workspace").CurrentCamera
  254. local plrs = game:GetService("Players"):GetPlayers()
  255. local lplr = game:GetService("Players").LocalPlayer
  256.  
  257. local aiming = false
  258. local dolerp = true
  259.  
  260. game:GetService("RunService"):BindToRenderStep("UpdateCamera", Enum.RenderPriority.Camera.Value, function()
  261. if not aiming or not lplr.Character or not lplr.Character:FindFirstChild("Head") then return end
  262. local cchar,cdist
  263. for _,plr in next,plrs do
  264. if plr ~= lplr and plr.TEEM.Value ~= lplr.TEEM.Value then
  265. local char = plr.Character
  266. if char and char:FindFirstChild("Head") then
  267. 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))
  268. if hit and hit.Parent and hit.Parent == char or hit.Parent.Parent == char then
  269. local dist = (char.Head.Position - lplr.Character.Head.Position).magnitude
  270. if cdist == nil or dist < cdist then
  271. cdist = dist
  272. cchar = char
  273. end
  274. end
  275. end
  276. end
  277. end
  278. if not cchar then return end
  279. 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)
  280. end)
  281.  
  282. game.Players.PlayerAdded:connect(function(plr)
  283. table.insert(plrs,plr)
  284. end)
  285.  
  286. game.Players.PlayerRemoving:connect(function(plr)
  287. for i,v in next,plrs do
  288. if v == plr then
  289. table.remove(plrs,i)
  290. end
  291. end
  292. end)
  293.  
  294. game:GetService("UserInputService").InputBegan:connect(function(input)
  295. if input.KeyCode == Enum.KeyCode.CapsLock then
  296. aiming = not aiming
  297. elseif input.KeyCode == Enum.KeyCode.RightBracket then
  298. dolerp = true
  299. elseif input.KeyCode == Enum.KeyCode.LeftBracket then
  300. dolerp = false
  301. end
  302. end)
  303. end
  304.  
  305. do --OMGWHAT
  306. local plr = game.Players.LocalPlayer
  307. game:GetService("UserInputService").InputBegan:connect(function(input)
  308. if input.KeyCode == Enum.KeyCode.RightAlt then
  309. if not plr.Character or not plr.Character:FindFirstChild("Head") then return end
  310. for _,v in next,game.Players:children() do
  311. 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
  312. local char = v.Character
  313. local head = char.Head
  314. char.Torso["Neck"]:destroy()
  315. head.Anchored = true
  316. head.CanCollide = false
  317. head.Transparency = 1
  318. head.face:destroy()
  319. for _,vv in next,head:children() do
  320. if vv:IsA("SurfaceGui") then
  321. vv:destroy()
  322. end
  323. end
  324. local rs = game:GetService("RunService").RenderStepped:connect(function()
  325. head.CFrame = plr.Character.Head.CFrame*CFrame.new(0,0,-5)
  326. end)
  327. head.AncestryChanged:connect(function()
  328. rs:disconnect()
  329. end)
  330. plr.Character.Head.AncestryChanged:connect(function()
  331. rs:disconnect()
  332. end)
  333. end
  334. end
  335. end
  336. end)
  337. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement