Advertisement
SlyHades66

Argument Return Spoofer (Edit)

Aug 9th, 2016
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. local SpoofReturns = function(name,class,returns)
  2.     for _,v in pairs(returns) do
  3.         if v == 2200 then
  4.             v = 10000
  5.             print(v)
  6.         end
  7.     end
  8.     return unpack(returns)
  9. end
  10.  
  11. local meta,oldmeta = getmetatable(game),{}
  12. for i,v in next,meta do oldmeta[i] = v end
  13. local realmethods = {}
  14. realmethods.Fire = Instance.new("BindableEvent").Fire
  15. realmethods.Invoke = Instance.new("BindableFunction").Invoke
  16. realmethods.FireServer = Instance.new("RemoteEvent").FireServer
  17. realmethods.InvokeServer = Instance.new("RemoteFunction").InvokeServer
  18. meta.__index = function(t,k)
  19.     if k == "Fire" or k == "Invoke" or k == "FireServer" or k == "InvokeServer" then
  20.         return function(self,...)
  21.             return SpoofReturns(t.Name,t.ClassName,{realmethods[k](self,...)})
  22.         end
  23.     else
  24.         return oldmeta.__index(t,k)
  25.     end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement