Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SpoofReturns = function(name,class,returns)
- for _,v in pairs(returns) do
- if v == 2200 then
- v = 10000
- print(v)
- end
- end
- return unpack(returns)
- end
- local meta,oldmeta = getmetatable(game),{}
- for i,v in next,meta do oldmeta[i] = v end
- local realmethods = {}
- realmethods.Fire = Instance.new("BindableEvent").Fire
- realmethods.Invoke = Instance.new("BindableFunction").Invoke
- realmethods.FireServer = Instance.new("RemoteEvent").FireServer
- realmethods.InvokeServer = Instance.new("RemoteFunction").InvokeServer
- meta.__index = function(t,k)
- if k == "Fire" or k == "Invoke" or k == "FireServer" or k == "InvokeServer" then
- return function(self,...)
- return SpoofReturns(t.Name,t.ClassName,{realmethods[k](self,...)})
- end
- else
- return oldmeta.__index(t,k)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement