DogeGalaxy

Rb2 animbot

Aug 18th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer;
  2. local mouse = plr:GetMouse();
  3. local hackson = true;
  4.  
  5. mouse.KeyDown:connect(function(key)
  6. if key == "q" then
  7. hackson = not hackson;
  8. end
  9. end)
  10.  
  11. local metatable = assert(getrawmetatable, "needs access to function 'getrawmetatable'")(game)
  12. local fireserver = Instance.new("RemoteEvent").FireServer;
  13. local __namecall = __namecall or metatable.__namecall
  14. local __index = __index or metatable.__index
  15.  
  16. if setreadonly then
  17. setreadonly(metatable, false)
  18. elseif make_writeable then
  19. make_writeable(metatable)
  20. end
  21.  
  22. function metatable:__namecall(...)
  23. local args = {...}
  24. local remote = self
  25. local method = table.remove(args)
  26.  
  27. if method == "FireServer" and self.Name == "shoot" and hackson then
  28. args[2] = math.random(90, 100) + math.random()
  29. args[3] = true;
  30. fireserver(self, unpack(args))
  31. return;
  32. end
  33.  
  34. return __namecall(self, ...)
  35. end
Advertisement
Add Comment
Please, Sign In to add comment