Ritual_x

Best Da Hood Purple Tracer Lock (HITS AIRSHOTS)

Mar 28th, 2023
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. local new = {
  2. main = {
  3. Mario = true,
  4. Prediction = 0.13,
  5. Part = "HumanoidRootPart", -- Head, UpperTorso, HumanoidRootPart, LowerTorso, RightFoot, LeftFoot, RightArm, LeftArm
  6. Key = "q",
  7. Notifications = true,
  8. AirshotFunc = true
  9. },
  10. Tracer = {
  11. TracerThickness = 3.5, -- made by thusky
  12. TracerTransparency = 1, -- made by thusky
  13. TracerColor = Color3.fromRGB(153, 50, 204) -- made by thusky
  14. }
  15. }
  16.  
  17.  
  18. local CurrentCamera = game:GetService "Workspace".CurrentCamera
  19. local Mouse = game.Players.LocalPlayer:GetMouse()
  20. local RunService = game:GetService("RunService")
  21. local Plr = game.Players.LocalPlayer
  22. local Line = Drawing.new("Line")
  23. local Inset = game:GetService("GuiService"):GetGuiInset().Y
  24.  
  25. Mouse.KeyDown:Connect(function(KeyPressed)
  26. if KeyPressed == (new.main.Key) then
  27. if new.main.Mario == true then
  28. new.main.Mario = false
  29. if new.main.Notifications == true then
  30. Plr = FindClosestUser()
  31. game.StarterGui:SetCore("SendNotification", {
  32. Title = "<3",
  33. Text = "No longer locked on"
  34. })
  35. end
  36. else
  37. Plr = FindClosestUser()
  38. new.main.Mario = true
  39. if new.main.Notifications == true then
  40. game.StarterGui:SetCore("SendNotification", {
  41. Title = "<3",
  42. Text = "Locked on to:" .. tostring(Plr.Character.Humanoid.DisplayName)
  43. })
  44. end
  45. end
  46. end
  47. end)
  48.  
  49. function FindClosestUser()
  50. local closestPlayer
  51. local shortestDistance = math.huge
  52.  
  53. for i, v in pairs(game.Players:GetPlayers()) do
  54. if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and
  55. v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
  56. local pos = CurrentCamera:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  57. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).magnitude
  58. if magnitude < shortestDistance then
  59. closestPlayer = v
  60. shortestDistance = magnitude
  61. end
  62. end
  63. end
  64. return closestPlayer
  65. end
  66.  
  67.  
  68.  
  69.  
  70. RunService.Stepped:connect(function()
  71. if new.main.Mario == true then
  72. local Vector = CurrentCamera:WorldToViewportPoint(Plr.Character[new.main.Part].Position +
  73. (Plr.Character.HumanoidRootPart.Velocity *
  74. new.main.Prediction))
  75. Line.Color = new.Tracer.TracerColor -- made by thusky
  76. Line.Thickness = new.Tracer.TracerThickness
  77. Line.Transparency = new.Tracer.TracerTransparency
  78.  
  79.  
  80. Line.From = Vector2.new(Mouse.X, Mouse.Y + Inset)
  81. Line.To = Vector2.new(Vector.X, Vector.Y)
  82. Line.Visible = true
  83. else
  84. Line.Visible = false
  85.  
  86. end
  87. end)
  88.  
  89.  
  90. local mt = getrawmetatable(game)
  91. local old = mt.__namecall
  92. setreadonly(mt, false)
  93. mt.__namecall = newcclosure(function(...)
  94. local args = {...}
  95. if new.main.Mario and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  96. args[3] = Plr.Character[new.main.Part].Position +
  97. (Plr.Character[new.main.Part].Velocity * new.main.Prediction)
  98. return old(unpack(args))
  99. end
  100. return old(...)
  101. end)
  102.  
  103. if new.main.AirshotFunc == true then
  104. if Plr.Character.Humanoid.Jump == true and Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  105. settings.main.Part = "RightFoot"
  106. else
  107. Plr.Character:WaitForChild("Humanoid").StateChanged:Connect(function(old,new)
  108. if new == Enum.HumanoidStateType.Freefall then
  109. settings.main.Part = "RightFoot"
  110. else
  111. settings.main.Part = "LowerTorso"
  112. end
  113. end)
  114. end
  115. end
  116.  
Add Comment
Please, Sign In to add comment