Advertisement
Khsskii

Da hood op lock

Jul 7th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.04 KB | None | 0 0
  1. local Settings = {
  2. rewrittenmain = {
  3. Enabled = true,
  4. Key = "q",
  5. DOT = true,
  6. AIRSHOT = true,
  7. NOTIF = true,
  8. AUTOPRED = false,
  9. FOV = math.huge,
  10. RESOVLER = false
  11. }
  12. }
  13.  
  14. local SelectedPart = "LowerTorso"
  15. local Prediction = true
  16. local PredictionValue = 0.124231
  17.  
  18. local AnchorCount = 0
  19. local MaxAnchor = 50
  20.  
  21. local CC = game:GetService"Workspace".CurrentCamera
  22. local Plr;
  23. local enabled = false
  24. local accomidationfactor = 0.1276217616
  25. local mouse = game.Players.LocalPlayer:GetMouse()
  26. local placemarker = Instance.new("Part", game.Workspace)
  27.  
  28. function makemarker(Parent, Adornee, Color, Size, Size2)
  29. local e = Instance.new("BillboardGui", Parent)
  30. e.Name = "PP"
  31. e.Adornee = Adornee
  32. e.Size = UDim2.new(Size, Size2, Size, Size2)
  33. e.AlwaysOnTop = Settings.rewrittenmain.DOT
  34. local a = Instance.new("Frame", e)
  35. if Settings.rewrittenmain.DOT == true then
  36. a.Size = UDim2.new(1, 0, 1, 0)
  37. else
  38. a.Size = UDim2.new(400, 400, 400, 400)
  39. end
  40. if Settings.rewrittenmain.DOT == true then
  41. a.Transparency = 0.107
  42. a.BackgroundTransparency = 0.107
  43. else
  44. a.Transparency = 0.9
  45. a.BackgroundTransparency = 0.107
  46. end
  47. a.BackgroundColor3 = Color
  48. local g = Instance.new("UICorner", a)
  49. if Settings.rewrittenmain.DOT == false then
  50. g.CornerRadius = UDim.new(10, 10)
  51. else
  52. g.CornerRadius = UDim.new(10, 10)
  53. end
  54. return(e)
  55. end
  56.  
  57.  
  58. local data = game.Players:GetPlayers()
  59. function noob(player)
  60. local character
  61. repeat wait() until player.Character
  62. local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(107, 184, 255), 0.3, 3)
  63. handler.Name = player.Name
  64. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
  65.  
  66.  
  67. spawn(function()
  68. while wait() do
  69. if player.Character then
  70. end
  71. end
  72. end)
  73. end
  74.  
  75. for i = 1, #data do
  76. if data[i] ~= game.Players.LocalPlayer then
  77. noob(data[i])
  78. end
  79. end
  80.  
  81. game.Players.PlayerAdded:connect(function(Player)
  82. noob(Player)
  83. end)
  84.  
  85. spawn(function()
  86. placemarker.Anchored = true
  87. placemarker.CanCollide = false
  88. if Settings.rewrittenmain.DOT == true then
  89. placemarker.Size = Vector3.new(1, 1, 1)
  90. else
  91. placemarker.Size = Vector3.new(1, 1, 1)
  92. end
  93. placemarker.Transparency = 0.3
  94. if Settings.rewrittenmain.DOT then
  95. makemarker(placemarker, placemarker, Color3.fromRGB(156, 33, 181), 0.40, 0)
  96. end
  97. end)
  98.  
  99. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  100. if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then
  101. if enabled == true then
  102. enabled = false
  103. if Settings.rewrittenmain.NOTIF == true then
  104. Plr = getClosestPlayerToCursor()
  105. game.StarterGui:SetCore("SendNotification", {
  106. Title = "rebound",
  107. Text = "Unlocked",
  108. Icon = "http://www.roblox.com/asset/?id=8850953349",
  109. Duration = 1,
  110. })
  111. end
  112. else
  113. Plr = getClosestPlayerToCursor()
  114. enabled = true
  115. if Settings.rewrittenmain.NOTIF == true then
  116.  
  117. game.StarterGui:SetCore("SendNotification", {
  118. Title = "rebound",
  119. Text = ""..tostring(Plr.Name);
  120. Icon = "http://www.roblox.com/asset/?id=8850953349",
  121. Duration = 1,
  122. })
  123.  
  124. end
  125. end
  126. end
  127. end)
  128.  
  129.  
  130.  
  131. function getClosestPlayerToCursor()
  132. local closestPlayer
  133. local shortestDistance = Settings.rewrittenmain.FOV
  134.  
  135. for i, v in pairs(game.Players:GetPlayers()) do
  136. if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
  137. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  138. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  139. if magnitude < shortestDistance then
  140. closestPlayer = v
  141. shortestDistance = magnitude
  142. end
  143. end
  144. end
  145. return closestPlayer
  146. end
  147.  
  148. local pingvalue = nil;
  149. local split = nil;
  150. local ping = nil;
  151.  
  152. game:GetService"RunService".Stepped:connect(function()
  153. if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
  154. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  155. else
  156. placemarker.CFrame = CFrame.new(0, 9999, 0)
  157. end
  158. if Settings.rewrittenmain.AUTOPRED == true then
  159. pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  160. split = string.split(pingvalue,'(')
  161. ping = tonumber(split[1])
  162. if ping < 130 then
  163. PredictionValue = 0.151
  164. elseif ping < 125 then
  165. PredictionValue = 0.149
  166. elseif ping < 110 then
  167. PredictionValue = 0.146
  168. elseif ping < 105 then
  169. PredictionValue = 0.138
  170. elseif ping < 90 then
  171. PredictionValue = 0.136
  172. elseif ping < 80 then
  173. PredictionValue = 0.134
  174. elseif ping < 70 then
  175. PredictionValue = 0.131
  176. elseif ping < 60 then
  177. PredictionValue = 0.1229
  178. elseif ping < 50 then
  179. PredictionValue = 0.1225
  180. elseif ping < 40 then
  181. PredictionValue = 0.1256
  182. end
  183. end
  184. end)
  185.  
  186. local mt = getrawmetatable(game)
  187. local old = mt.__namecall
  188. setreadonly(mt, false)
  189. mt.__namecall = newcclosure(function(...)
  190. local args = {...}
  191. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.rewrittenmain.Enabled and Plr.Character ~= nil then
  192.  
  193. -- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  194. --[[
  195. if Settings.rewrittenmain.AIRSHOT == true then
  196. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  197.  
  198. --// Airshot
  199. args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)
  200.  
  201. else
  202. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  203.  
  204. end
  205. else
  206. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  207. end
  208. ]]
  209. if Prediction == true then
  210.  
  211. args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)
  212.  
  213. else
  214.  
  215. args[3] = Plr.Character[SelectedPart].Position
  216.  
  217. end
  218.  
  219. return old(unpack(args))
  220. end
  221. return old(...)
  222. end)
  223.  
  224. game:GetService("RunService").RenderStepped:Connect(function()
  225. if Settings.rewrittenmain.RESOVLER == true and Plr.Character ~= nil and enabled and Settings.rewrittenmain.Enabled then
  226. if Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~= nil then
  227.  
  228. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  229.  
  230. --// Airshot
  231.  
  232. --// Anchor Check
  233.  
  234. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  235. AnchorCount = AnchorCount + 1
  236. if AnchorCount >= MaxAnchor then
  237. Prediction = false
  238. wait(2)
  239. AnchorCount = 0;
  240. end
  241. else
  242. Prediction = true
  243. AnchorCount = 0;
  244. end
  245.  
  246. SelectedPart = "LeftFoot"
  247.  
  248. else
  249. --// Anchor Check
  250.  
  251. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  252. AnchorCount = AnchorCount + 1
  253. if AnchorCount >= MaxAnchor then
  254. Prediction = false
  255. wait(2)
  256. AnchorCount = 0;
  257. end
  258. else
  259. Prediction = true
  260. AnchorCount = 0;
  261. end
  262.  
  263. SelectedPart = "HumanoidRootPart"
  264.  
  265. end
  266. else
  267.  
  268. --// Anchor Check
  269.  
  270. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  271. AnchorCount = AnchorCount + 1
  272. if AnchorCount >= MaxAnchor then
  273. Prediction = false
  274. wait(2)
  275. AnchorCount = 0;
  276. end
  277. else
  278. Prediction = true
  279. AnchorCount = 0;
  280. end
  281.  
  282. SelectedPart = "HumanoidRootPart"
  283. end
  284.  
  285. else
  286. SelectedPart = "HumanoidRootPart"
  287. end
  288. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement