Advertisement
Guest User

Silent Aim

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