Advertisement
Guest User

Untitled

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