artbarte

RemoteSpoof for Intriga/Elysian by Autumn

May 21st, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. -- RemoteSpoof for Intriga/Elysian
  2. -- Written by Autumn on V3rmillion
  3. -- WARNING: This script might interfere with RemoteSpy, only use one or the other
  4.  
  5. -- Use this script to spoof the return values of all remotes called by your client
  6. -- Simply modify the "returns" table in the SpoofReturns function below to your liking
  7. -- It will trigger every time a remote is called, and provide the calling script with its values
  8.  
  9. -- The SpoofReturns function's arguments are as follows:
  10. -- name - The Name of the remote being called
  11. -- class - The ClassName of the remote being called
  12. -- returns - A table of all the remote's return values
  13.  
  14. local SpoofReturns = function(name,class,returns)
  15.  
  16. -- Edit above this comment
  17. return unpack(returns)
  18. end
  19.  
  20. local meta,oldmeta = getrawmetatable(game),{}
  21. for i,v in next,meta do oldmeta[i] = v end
  22. local realmethods = {}
  23. realmethods.Fire = Instance.new("BindableEvent").Fire
  24. realmethods.Invoke = Instance.new("BindableFunction").Invoke
  25. realmethods.FireServer = Instance.new("RemoteEvent").FireServer
  26. realmethods.InvokeServer = Instance.new("RemoteFunction").InvokeServer
  27. meta.__index = function(t,k)
  28. if k == "Fire" or k == "Invoke" or k == "FireServer" or k == "InvokeServer" then
  29. return function(self,...)
  30. return SpoofReturns(t.Name,t.ClassName,{realmethods[k](self,...)})
  31. end
  32. else
  33. return oldmeta.__index(t,k)
  34. end
  35. end
Add Comment
Please, Sign In to add comment