Advertisement
anomess

chadlock

Jun 26th, 2022 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.28 KB | None | 0 0
  1. if game.PlaceId == 2788229376 then
  2. print'da hood'
  3.  
  4. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/vKhonshu/intro2/main/ui2"))()
  5. local NotifyLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/vKhonshu/intro/main/ui"))()
  6. NotifyLib.prompt('Moon God - E To Lock - Revamped by Dinja', 'Loading..', 5)
  7. NotifyLib.prompt('Moon God - Revamped by $zzz♡', 'best lock ong - dtbsilent', 5)
  8. NotifyLib.prompt('Moon God - Revamped by $zzz♡', '$ dtbsilent#0001, $zzz♡', 5)
  9. NotifyLib.prompt('Game Detected: Da Hood', '$ dtbsilent#0001, $zzz♡', 5)
  10. Settings = {
  11. rewrittenmain = {
  12. Enabled = true,
  13. Key = "e",
  14. DOT = true,
  15. AIRSHOT = true,
  16. NOTIF = true,
  17. FOV = math.huge,
  18. }
  19. }
  20. local SelectedPart = "UpperTorso"
  21. local Prediction = true
  22. local PredictionValue = 0.125
  23. local AnchorCount = 0
  24. local MaxAnchor = 50
  25.  
  26. local CC = game:GetService"Workspace".CurrentCamera
  27. local Plr;
  28. local enabled = false
  29. local accomidationfactor = 0.136
  30. local mouse = game.Players.LocalPlayer:GetMouse()
  31. local placemarker = Instance.new("Part", game.Workspace)
  32.  
  33. function makemarker(Parent, Adornee, Color, Size, Size2)
  34. local e = Instance.new("BillboardGui", Parent)
  35. e.Name = "PP"
  36. e.Adornee = Adornee
  37. e.Size = UDim2.new(Size, Size2, Size, Size2)
  38. e.AlwaysOnTop = Settings.rewrittenmain.DOT
  39. local a = Instance.new("Frame", e)
  40. if Settings.rewrittenmain.DOT == true then
  41. a.Size = UDim2.new(1, 0, 1, 0)
  42. else
  43. a.Size = UDim2.new(0, 0, 0, 0)
  44. end
  45. if Settings.rewrittenmain.DOT == true then
  46. a.Transparency = 0
  47. a.BackgroundTransparency = 0
  48. else
  49. a.Transparency = 1
  50. a.BackgroundTransparency = 1
  51. end
  52. a.BackgroundColor3 = Color
  53. local g = Instance.new("UICorner", a)
  54. if Settings.rewrittenmain.DOT == false then
  55. g.CornerRadius = UDim.new(0, 0)
  56. else
  57. g.CornerRadius = UDim.new(1, 1)
  58. end
  59. return(e)
  60. end
  61.  
  62.  
  63. local data = game.Players:GetPlayers()
  64. function noob(player)
  65. local character
  66. repeat wait() until player.Character
  67. local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(255, 0, 0), 0.3, 3)
  68. handler.Name = player.Name
  69. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
  70.  
  71.  
  72. spawn(function()
  73. while wait() do
  74. if player.Character then
  75. end
  76. end
  77. end)
  78. end
  79.  
  80. for i = 1, #data do
  81. if data[i] ~= game.Players.LocalPlayer then
  82. noob(data[i])
  83. end
  84. end
  85.  
  86. game.Players.PlayerAdded:connect(function(Player)
  87. noob(Player)
  88. end)
  89.  
  90. spawn(function()
  91. placemarker.Anchored = true
  92. placemarker.CanCollide = false
  93. if Settings.rewrittenmain.DOT == true then
  94. placemarker.Size = Vector3.new(8, 8, 8)
  95. else
  96. placemarker.Size = Vector3.new(0, 0, 0)
  97. end
  98. placemarker.Transparency = 0.50
  99. if Settings.rewrittenmain.DOT then
  100. makemarker(placemarker, placemarker, Color3.fromRGB(255, 0, 0), 0.40, 0)
  101. end
  102. end)
  103.  
  104. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  105. if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then
  106. if enabled == true then
  107. enabled = false
  108. if Settings.rewrittenmain.NOTIF == true then
  109. Plr = getClosestPlayerToCursor()
  110. game.StarterGui:SetCore("SendNotification", {
  111. Title = "yarn | revamped";
  112. Text = "Unlocked",
  113. Duration = 3
  114. })
  115. end
  116. else
  117. Plr = getClosestPlayerToCursor()
  118. enabled = true
  119. if Settings.rewrittenmain.NOTIF == true then
  120.  
  121. game.StarterGui:SetCore("SendNotification", {
  122. Title = "yarn | revamped";
  123. Text = "Target: "..tostring(Plr.Character.Humanoid.DisplayName),
  124. Duration = 3
  125. })
  126.  
  127. end
  128. end
  129. end
  130. end)
  131.  
  132.  
  133.  
  134. function getClosestPlayerToCursor()
  135. local closestPlayer
  136. local shortestDistance = Settings.rewrittenmain.FOV
  137.  
  138. for i, v in pairs(game.Players:GetPlayers()) do
  139. 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
  140. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  141. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  142. if magnitude < shortestDistance then
  143. closestPlayer = v
  144. shortestDistance = magnitude
  145. end
  146. end
  147. end
  148. return closestPlayer
  149. end
  150.  
  151. local pingvalue = nil;
  152. local split = nil;
  153. local ping = nil;
  154.  
  155. game:GetService"RunService".Stepped:connect(function()
  156. if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
  157. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  158. else
  159. placemarker.CFrame = CFrame.new(0, 9999, 0)
  160. end
  161. end)
  162.  
  163. local mt = getrawmetatable(game)
  164. local old = mt.__namecall
  165. setreadonly(mt, false)
  166. mt.__namecall = newcclosure(function(...)
  167. local args = {...}
  168. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.rewrittenmain.Enabled and Plr.Character ~= nil then
  169.  
  170. -- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  171. --[[
  172. if Settings.rewrittenmain.AIRSHOT == true then
  173. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  174.  
  175. --// Airshot
  176. args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)
  177.  
  178. else
  179. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  180.  
  181. end
  182. else
  183. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  184. end
  185. ]]
  186. if Prediction == true then
  187.  
  188. args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)
  189.  
  190. else
  191.  
  192. args[3] = Plr.Character[SelectedPart].Position
  193.  
  194. end
  195.  
  196. return old(unpack(args))
  197. end
  198. return old(...)
  199. end)
  200.  
  201. game:GetService("RunService").RenderStepped:Connect(function()
  202. if Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~= nil then
  203.  
  204. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  205.  
  206. --// Airshot
  207.  
  208. --// Anchor Check
  209.  
  210. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  211. AnchorCount = AnchorCount + 1
  212. if AnchorCount >= MaxAnchor then
  213. Prediction = false
  214. wait(2)
  215. AnchorCount = 0;
  216. else
  217. Prediction = true
  218. AnchorCount = 0;
  219. end
  220.  
  221. SelectedPart = "LeftFoot"
  222.  
  223. else
  224. --// Anchor Check
  225.  
  226. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  227. AnchorCount = AnchorCount + 1
  228. if AnchorCount >= MaxAnchor then
  229. Prediction = false
  230. wait(2)
  231. AnchorCount = 0;
  232. end
  233. else
  234. Prediction = true
  235. AnchorCount = 0;
  236. end
  237.  
  238. SelectedPart = "HumanoidRootPart"
  239.  
  240. end
  241. else
  242.  
  243. --// Anchor Check
  244.  
  245. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  246. AnchorCount = AnchorCount + 1
  247. if AnchorCount >= MaxAnchor then
  248. Prediction = false
  249. wait(2)
  250. AnchorCount = 0;
  251. end
  252. else
  253. Prediction = true
  254. AnchorCount = 0;
  255. end
  256.  
  257. SelectedPart = "HumanoidRootPart"
  258. end
  259.  
  260. else
  261. SelectedPart = "HumanoidRootPart"
  262. end
  263. end)
  264. end
  265. if game.PlaceId == 5602055394 then
  266. print'hood modded'
  267. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/vKhonshu/intro2/main/ui2"))()
  268. local NotifyLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/vKhonshu/intro/main/ui"))()
  269. NotifyLib.prompt('Moon God - Q To Lock - Revamped by Valox', 'Loading..', 5)
  270. NotifyLib.prompt('Moon God - Revamped by Valox', 'best lock ong - valox', 5)
  271. NotifyLib.prompt('Moon God - Revamped by Valox', 'yarn#0001, Valox#8980', 5)
  272. NotifyLib.prompt('Game Detected: Hood Modded', 'yarn#0001, Valox#8980', 5)
  273. Settings = {
  274. rewrittenmain = {
  275. Enabled = true,
  276. Key = "q",
  277. DOT = true,
  278. AIRSHOT = true,
  279. NOTIF = true,
  280. FOV = math.huge,
  281. }
  282. }
  283. local SelectedPart = "UpperTorso"
  284. local Prediction = true
  285. local PredictionValue = 0.125
  286. local AnchorCount = 0
  287. local MaxAnchor = 50
  288.  
  289. local CC = game:GetService"Workspace".CurrentCamera
  290. local Plr;
  291. local enabled = false
  292. local accomidationfactor = 0.136
  293. local mouse = game.Players.LocalPlayer:GetMouse()
  294. local placemarker = Instance.new("Part", game.Workspace)
  295.  
  296. function makemarker(Parent, Adornee, Color, Size, Size2)
  297. local e = Instance.new("BillboardGui", Parent)
  298. e.Name = "PP"
  299. e.Adornee = Adornee
  300. e.Size = UDim2.new(Size, Size2, Size, Size2)
  301. e.AlwaysOnTop = Settings.rewrittenmain.DOT
  302. local a = Instance.new("Frame", e)
  303. if Settings.rewrittenmain.DOT == true then
  304. a.Size = UDim2.new(1, 0, 1, 0)
  305. else
  306. a.Size = UDim2.new(0, 0, 0, 0)
  307. end
  308. if Settings.rewrittenmain.DOT == true then
  309. a.Transparency = 0
  310. a.BackgroundTransparency = 0
  311. else
  312. a.Transparency = 1
  313. a.BackgroundTransparency = 1
  314. end
  315. a.BackgroundColor3 = Color
  316. local g = Instance.new("UICorner", a)
  317. if Settings.rewrittenmain.DOT == false then
  318. g.CornerRadius = UDim.new(0, 0)
  319. else
  320. g.CornerRadius = UDim.new(1, 1)
  321. end
  322. return(e)
  323. end
  324.  
  325.  
  326. local data = game.Players:GetPlayers()
  327. function noob(player)
  328. local character
  329. repeat wait() until player.Character
  330. local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(255, 0, 0), 0.3, 3)
  331. handler.Name = player.Name
  332. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
  333.  
  334.  
  335. spawn(function()
  336. while wait() do
  337. if player.Character then
  338. end
  339. end
  340. end)
  341. end
  342.  
  343. for i = 1, #data do
  344. if data[i] ~= game.Players.LocalPlayer then
  345. noob(data[i])
  346. end
  347. end
  348.  
  349. game.Players.PlayerAdded:connect(function(Player)
  350. noob(Player)
  351. end)
  352.  
  353. spawn(function()
  354. placemarker.Anchored = true
  355. placemarker.CanCollide = false
  356. if Settings.rewrittenmain.DOT == true then
  357. placemarker.Size = Vector3.new(8, 8, 8)
  358. else
  359. placemarker.Size = Vector3.new(0, 0, 0)
  360. end
  361. placemarker.Transparency = 0.50
  362. if Settings.rewrittenmain.DOT then
  363. makemarker(placemarker, placemarker, Color3.fromRGB(255, 0, 0), 0.40, 0)
  364. end
  365. end)
  366.  
  367. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  368. if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then
  369. if enabled == true then
  370. enabled = false
  371. if Settings.rewrittenmain.NOTIF == true then
  372. Plr = getClosestPlayerToCursor()
  373. game.StarterGui:SetCore("SendNotification", {
  374. Title = "yarn | revamped";
  375. Text = "Unlocked",
  376. Duration = 3
  377. })
  378. end
  379. else
  380. Plr = getClosestPlayerToCursor()
  381. enabled = true
  382. if Settings.rewrittenmain.NOTIF == true then
  383.  
  384. game.StarterGui:SetCore("SendNotification", {
  385. Title = "yarn | revamped";
  386. Text = "Target: "..tostring(Plr.Character.Humanoid.DisplayName),
  387. Duration = 3
  388. })
  389.  
  390. end
  391. end
  392. end
  393. end)
  394.  
  395.  
  396.  
  397. function getClosestPlayerToCursor()
  398. local closestPlayer
  399. local shortestDistance = Settings.rewrittenmain.FOV
  400.  
  401. for i, v in pairs(game.Players:GetPlayers()) do
  402. 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
  403. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  404. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  405. if magnitude < shortestDistance then
  406. closestPlayer = v
  407. shortestDistance = magnitude
  408. end
  409. end
  410. end
  411. return closestPlayer
  412. end
  413.  
  414. local pingvalue = nil;
  415. local split = nil;
  416. local ping = nil;
  417.  
  418. game:GetService"RunService".Stepped:connect(function()
  419. if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
  420. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  421. else
  422. placemarker.CFrame = CFrame.new(0, 9999, 0)
  423. end
  424. end)
  425.  
  426. local mt = getrawmetatable(game)
  427. local old = mt.__namecall
  428. setreadonly(mt, false)
  429. mt.__namecall = newcclosure(function(...)
  430. local args = {...}
  431. if enabled and getnamecallmethod() == "FireServer" and args[2] == "MousePos" and Settings.rewrittenmain.Enabled and Plr.Character ~= nil then
  432.  
  433. -- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  434. --[[
  435. if Settings.rewrittenmain.AIRSHOT == true then
  436. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  437.  
  438. --// Airshot
  439. args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)
  440.  
  441. else
  442. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  443.  
  444. end
  445. else
  446. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  447. end
  448. ]]
  449. if Prediction == true then
  450.  
  451. args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)
  452.  
  453. else
  454.  
  455. args[3] = Plr.Character[SelectedPart].Position
  456.  
  457. end
  458.  
  459. return old(unpack(args))
  460. end
  461. return old(...)
  462. end)
  463.  
  464. game:GetService("RunService").RenderStepped:Connect(function()
  465. if Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~= nil then
  466.  
  467. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  468.  
  469. --// Airshot
  470.  
  471. --// Anchor Check
  472.  
  473. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  474. AnchorCount = AnchorCount + 1
  475. if AnchorCount >= MaxAnchor then
  476. Prediction = false
  477. wait(2)
  478. AnchorCount = 0;
  479. else
  480. Prediction = true
  481. AnchorCount = 0;
  482. end
  483.  
  484. SelectedPart = "LeftFoot"
  485.  
  486. else
  487. --// Anchor Check
  488.  
  489. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  490. AnchorCount = AnchorCount + 1
  491. if AnchorCount >= MaxAnchor then
  492. Prediction = false
  493. wait(2)
  494. AnchorCount = 0;
  495. end
  496. else
  497. Prediction = true
  498. AnchorCount = 0;
  499. end
  500.  
  501. SelectedPart = "HumanoidRootPart"
  502.  
  503. end
  504. else
  505.  
  506. --// Anchor Check
  507.  
  508. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  509. AnchorCount = AnchorCount + 1
  510. if AnchorCount >= MaxAnchor then
  511. Prediction = false
  512. wait(2)
  513. AnchorCount = 0;
  514. end
  515. else
  516. Prediction = true
  517. AnchorCount = 0;
  518. end
  519.  
  520. SelectedPart = "HumanoidRootPart"
  521. end
  522.  
  523. else
  524. SelectedPart = "HumanoidRootPart"
  525. end
  526. end)
  527. end
  528. if game.PlaceId == 9183932460 then
  529. print'Untitled Hood'
  530. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/vKhonshu/intro2/main/ui2"))()
  531. local NotifyLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/vKhonshu/intro/main/ui"))()
  532. NotifyLib.prompt('Moon God - Q To Lock - Revamped by Valox', 'Loading..', 5)
  533. NotifyLib.prompt('Moon God - Revamped by Valox', 'best lock ong - valox', 5)
  534. NotifyLib.prompt('Moon God - Revamped by Valox', 'yarn#0001, Valox#8980', 5)
  535. NotifyLib.prompt('Game Detected: Untitled Hood', 'yarn#0001, Valox#8980', 5)
  536. Settings = {
  537. rewrittenmain = {
  538. Enabled = true,
  539. Key = "e",
  540. DOT = true,
  541. AIRSHOT = true,
  542. NOTIF = true,
  543. FOV = math.huge,
  544. }
  545. }
  546. local SelectedPart = "UpperTorso"
  547. local Prediction = true
  548. local PredictionValue = 0.125
  549. local AnchorCount = 0
  550. local MaxAnchor = 50
  551.  
  552. local CC = game:GetService"Workspace".CurrentCamera
  553. local Plr;
  554. local enabled = false
  555. local accomidationfactor = 0.136
  556. local mouse = game.Players.LocalPlayer:GetMouse()
  557. local placemarker = Instance.new("Part", game.Workspace)
  558.  
  559. function makemarker(Parent, Adornee, Color, Size, Size2)
  560. local e = Instance.new("BillboardGui", Parent)
  561. e.Name = "PP"
  562. e.Adornee = Adornee
  563. e.Size = UDim2.new(Size, Size2, Size, Size2)
  564. e.AlwaysOnTop = Settings.rewrittenmain.DOT
  565. local a = Instance.new("Frame", e)
  566. if Settings.rewrittenmain.DOT == true then
  567. a.Size = UDim2.new(1, 0, 1, 0)
  568. else
  569. a.Size = UDim2.new(0, 0, 0, 0)
  570. end
  571. if Settings.rewrittenmain.DOT == true then
  572. a.Transparency = 0
  573. a.BackgroundTransparency = 0
  574. else
  575. a.Transparency = 1
  576. a.BackgroundTransparency = 1
  577. end
  578. a.BackgroundColor3 = Color
  579. local g = Instance.new("UICorner", a)
  580. if Settings.rewrittenmain.DOT == false then
  581. g.CornerRadius = UDim.new(0, 0)
  582. else
  583. g.CornerRadius = UDim.new(1, 1)
  584. end
  585. return(e)
  586. end
  587.  
  588.  
  589. local data = game.Players:GetPlayers()
  590. function noob(player)
  591. local character
  592. repeat wait() until player.Character
  593. local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(255, 0, 0), 0.3, 3)
  594. handler.Name = player.Name
  595. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
  596.  
  597.  
  598. spawn(function()
  599. while wait() do
  600. if player.Character then
  601. end
  602. end
  603. end)
  604. end
  605.  
  606. for i = 1, #data do
  607. if data[i] ~= game.Players.LocalPlayer then
  608. noob(data[i])
  609. end
  610. end
  611.  
  612. game.Players.PlayerAdded:connect(function(Player)
  613. noob(Player)
  614. end)
  615.  
  616. spawn(function()
  617. placemarker.Anchored = true
  618. placemarker.CanCollide = false
  619. if Settings.rewrittenmain.DOT == true then
  620. placemarker.Size = Vector3.new(8, 8, 8)
  621. else
  622. placemarker.Size = Vector3.new(0, 0, 0)
  623. end
  624. placemarker.Transparency = 0.50
  625. if Settings.rewrittenmain.DOT then
  626. makemarker(placemarker, placemarker, Color3.fromRGB(255, 0, 0), 0.40, 0)
  627. end
  628. end)
  629.  
  630. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  631. if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then
  632. if enabled == true then
  633. enabled = false
  634. if Settings.rewrittenmain.NOTIF == true then
  635. Plr = getClosestPlayerToCursor()
  636. game.StarterGui:SetCore("SendNotification", {
  637. Title = "yarn | revamped";
  638. Text = "Unlocked",
  639. Duration = 3
  640. })
  641. end
  642. else
  643. Plr = getClosestPlayerToCursor()
  644. enabled = true
  645. if Settings.rewrittenmain.NOTIF == true then
  646.  
  647. game.StarterGui:SetCore("SendNotification", {
  648. Title = "yarn | revamped";
  649. Text = "Target: "..tostring(Plr.Character.Humanoid.DisplayName),
  650. Duration = 3
  651. })
  652.  
  653. end
  654. end
  655. end
  656. end)
  657.  
  658.  
  659.  
  660. function getClosestPlayerToCursor()
  661. local closestPlayer
  662. local shortestDistance = Settings.rewrittenmain.FOV
  663.  
  664. for i, v in pairs(game.Players:GetPlayers()) do
  665. 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
  666. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  667. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  668. if magnitude < shortestDistance then
  669. closestPlayer = v
  670. shortestDistance = magnitude
  671. end
  672. end
  673. end
  674. return closestPlayer
  675. end
  676.  
  677. local pingvalue = nil;
  678. local split = nil;
  679. local ping = nil;
  680.  
  681. game:GetService"RunService".Stepped:connect(function()
  682. if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
  683. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  684. else
  685. placemarker.CFrame = CFrame.new(0, 9999, 0)
  686. end
  687. end)
  688.  
  689. local mt = getrawmetatable(game)
  690. local old = mt.__namecall
  691. setreadonly(mt, false)
  692. mt.__namecall = newcclosure(function(...)
  693. local args = {...}
  694. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.rewrittenmain.Enabled and Plr.Character ~= nil then
  695.  
  696. -- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  697. --[[
  698. if Settings.rewrittenmain.AIRSHOT == true then
  699. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  700.  
  701. --// Airshot
  702. args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)
  703.  
  704. else
  705. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  706.  
  707. end
  708. else
  709. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  710. end
  711. ]]
  712. if Prediction == true then
  713.  
  714. args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)
  715.  
  716. else
  717.  
  718. args[3] = Plr.Character[SelectedPart].Position
  719.  
  720. end
  721.  
  722. return old(unpack(args))
  723. end
  724. return old(...)
  725. end)
  726.  
  727. game:GetService("RunService").RenderStepped:Connect(function()
  728. if Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~= nil then
  729.  
  730. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  731.  
  732. --// Airshot
  733.  
  734. --// Anchor Check
  735.  
  736. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  737. AnchorCount = AnchorCount + 1
  738. if AnchorCount >= MaxAnchor then
  739. Prediction = false
  740. wait(2)
  741. AnchorCount = 0;
  742. else
  743. Prediction = true
  744. AnchorCount = 0;
  745. end
  746.  
  747. SelectedPart = "LeftFoot"
  748.  
  749. else
  750. --// Anchor Check
  751.  
  752. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  753. AnchorCount = AnchorCount + 1
  754. if AnchorCount >= MaxAnchor then
  755. Prediction = false
  756. wait(2)
  757. AnchorCount = 0;
  758. end
  759. else
  760. Prediction = true
  761. AnchorCount = 0;
  762. end
  763.  
  764. SelectedPart = "HumanoidRootPart"
  765.  
  766. end
  767. else
  768.  
  769. --// Anchor Check
  770.  
  771. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  772. AnchorCount = AnchorCount + 1
  773. if AnchorCount >= MaxAnchor then
  774. Prediction = false
  775. wait(2)
  776. AnchorCount = 0;
  777. end
  778. else
  779. Prediction = true
  780. AnchorCount = 0;
  781. end
  782.  
  783. SelectedPart = "HumanoidRootPart"
  784. end
  785.  
  786. else
  787. SelectedPart = "HumanoidRootPart"
  788. end
  789. end)
  790. else
  791. print'a'
  792. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement