Advertisement
vtrvsted

pacify

Feb 18th, 2023
909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.74 KB | None | 0 0
  1. ---HotKey
  2.  
  3. local hotkey = "x" -- toggle key
  4. local mouse = game.Players.LocalPlayer:GetMouse()
  5.  
  6.  
  7.  
  8. mouse.KeyDown:Connect(function(key)
  9. if key == hotkey then
  10. if getgenv().ValiantAimHacks.SilentAimEnabled == true then
  11.  getgenv().ValiantAimHacks.SilentAimEnabled = false
  12. else
  13. getgenv().ValiantAimHacks.SilentAimEnabled = true
  14. end
  15. end
  16. end)
  17.  
  18. -- // Services
  19. local Players = game:GetService("Players")
  20.  
  21. -- // Vars
  22. local LocalPlayer = Players.LocalPlayer
  23. local accomidationfactor = 0.1213124352121
  24.  
  25. -- // Silent Aim Module
  26. local SilentAim = loadstring(game:HttpGet("https://pastebin.com/raw/2f0mGbMP"))()
  27. SilentAim.TeamCheck = false
  28. -- // Metatable vars
  29. local mt = getrawmetatable(game)
  30. local backupindex = mt.__index
  31. setreadonly(mt, false)
  32.  
  33. -- // Check if player is down
  34. SilentAim.checkSilentAim = function()
  35.     local checkA = (SilentAim.SilentAimEnabled == true and SilentAim.Selected ~= LocalPlayer)
  36.     local playerCharacter = SilentAim.Selected.Character
  37.     local daHood = (playerCharacter.BodyEffects["K.O"].Value == false or playerCharacter:FindFirstChild("GRABBING_CONSTRAINT") ~= nil)
  38.  
  39.     return (checkA and daHood)
  40. end
  41.  
  42. -- // Hook
  43. mt.__index = newcclosure(function(t, k)
  44.     if (t:IsA("Mouse") and (k == "Hit")) then
  45.        
  46.         local CPlayer = SilentAim.Selected
  47.         if (SilentAim.checkSilentAim()) then
  48.             if (CPlayer.Character:FindFirstChild("HumanoidRootPart")) then
  49.                 return {p=(CPlayer.Character.HumanoidRootPart.CFrame.p+(CPlayer.Character.HumanoidRootPart.Velocity*accomidationfactor))}
  50.             end
  51.         end
  52.     end
  53.     return backupindex(t, k)
  54. end)
  55.  
  56. -- // Revert
  57. setreadonly(mt, true)
  58. getgenv().ValiantAimHacks.SilentAimEnabled = true
  59. getgenv().ValiantAimHacks.FOV = 11
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement