1. local __namecall; __namecall = hookmetamethod(game, "__namecall", function(Self, ...)
  2. local Method = getnamecallmethod();
  3. local Args = {...};
  4. --
  5. if Method == "GetAttribute" then
  6. if Args[1] == "MuzzleVelocity" then
  7. return 9e9;
  8. end;
  9. end;
  10. if Method == "FireServer" then
  11. if tostring(Self) == "ProjectileInflict" then
  12. do -- Modifications
  13. local Distance = (Args[3].Position - workspace:FindFirstChildOfClass("Camera").CFrame.p).magnitude;
  14. local StepAmount = Distance / 17;
  15. if Distance / 3 > 15 then
  16. for i = 1, math.floor(StepAmount) do
  17. if not Args[2][i] then
  18. Args[2][i] = {
  19. ["step"] = (math.random() / 10);
  20. };
  21. end;
  22. end;
  23. end;
  24. end;
  25. end;
  26. return __namecall(Self, unpack(Args));
  27. end);