Advertisement
vtrvsted

godly slient aim

Sep 18th, 2022
693
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.06 KB | None | 0 0
  1. getgenv().Target = {
  2.     Enabled = true,
  3.     Prediction = 0.12405,
  4.     Part = "LowerTorso",
  5.     Key = "q",
  6.     Notifications = true
  7. }
  8.  
  9. local CurrentCamera = game:GetService "Workspace".CurrentCamera
  10. local Mouse = game.Players.LocalPlayer:GetMouse()
  11. local RunService = game:GetService("RunService")
  12. local Plr = game.Players.LocalPlayer
  13. local Line = Drawing.new("Line")
  14. local Inset = game:GetService("GuiService"):GetGuiInset().Y
  15.  
  16. Mouse.KeyDown:Connect(function(KeyPressed)
  17.     if KeyPressed == (getgenv().Target.Key) then
  18.         if getgenv().Target.Enabled == true then
  19.             getgenv().Target.Enabled = false
  20.             if getgenv().Target.Notifications == true then
  21.                 Plr = FindClosestUser()
  22.                 game.StarterGui:SetCore("SendNotification", {            
  23.                     Title = "HelloKittyWare",
  24.                     Text = ""
  25.                 })
  26.             end
  27.         else
  28.             Plr = FindClosestUser()
  29.             getgenv().Target.Enabled = true
  30.             if getgenv().Target.Notifications == true then
  31.                 game.StarterGui:SetCore("SendNotification", {
  32.                     Title = "HelloKittyWare",
  33.                     Text = ":" .. tostring(Plr.Character.Humanoid.DisplayName)
  34.                 })
  35.             end
  36.         end
  37.     end
  38. end)
  39.  
  40. function FindClosestUser()
  41.     local closestPlayer
  42.     local shortestDistance = math.huge
  43.  
  44.     for i, v in pairs(game.Players:GetPlayers()) do
  45.         if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and
  46.             v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
  47.             local pos = CurrentCamera:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  48.             local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).magnitude
  49.             if magnitude < shortestDistance then
  50.                 closestPlayer = v
  51.                 shortestDistance = magnitude
  52.             end
  53.         end
  54.     end
  55.     return closestPlayer
  56. end
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. local mt = getrawmetatable(game)
  65. local old = mt.__namecall
  66. setreadonly(mt, false)
  67. mt.__namecall = newcclosure(function(...)
  68.     local args = {...}
  69.     if getgenv().Target.Enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  70.         args[3] = Plr.Character[getgenv().Target.Part].Position +
  71.                       (Plr.Character[getgenv().Target.Part].Velocity * getgenv().Target.Prediction)
  72.         return old(unpack(args))
  73.     end
  74.     return old(...)
  75. end)
  76.  
  77. if getgenv().Target.AirshotFunc == true then
  78.     if Plr.Character.Humanoid.Jump == true and Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  79.         getgenv().Target.Part = "RightFoot"
  80.     else
  81.         Plr.Character:WaitForChild("Humanoid").StateChanged:Connect(function(old,new)
  82.             if new == Enum.HumanoidStateType.Freefall then
  83.                 getgenv().Target.Part = "RightFoot"
  84.             else
  85.                 getgenv().Target.Part = "LowerTorso"
  86.             end
  87.         end)
  88.     end
  89. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement