Advertisement
Guest User

fesfdfvrtbhtWSertHNST

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