Advertisement
Guest User

Untitled

a guest
Aug 14th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. --[[
  2.  
  3. _____ _
  4. | __ \ | |
  5. | |__) |___ _ __ ___ ___ | |_ ___ ___ _ __ _ _
  6. | _ // _ \ '_ ` _ \ / _ \| __/ _ \/ __| '_ \| | | |
  7. | | \ \ __/ | | | | | (_) | || __/\__ \ |_) | |_| |
  8. |_| \_\___|_| |_| |_|\___/ \__\___||___/ .__/ \__, |
  9. | | __/ |
  10. |_| |___/
  11.  
  12. ~@ Author: Local Communist#9156 & @Josh#7880
  13.  
  14. All I did was modify Josh's Kick script to check if the functions are being called, and make them output the path and the function being called.
  15.  
  16. Games can detect this script so beware.
  17.  
  18. --]]
  19.  
  20. if not getrawmetatable then
  21. getrawmetatable = debug.getmetatable
  22. end
  23.  
  24. if not setreadonly then
  25. setreadonly = make_writeable
  26. end
  27.  
  28. if not setreadonly and not getrawmetatable then
  29. print("This script is not compatible with this exploit.")
  30. return
  31. end
  32.  
  33. local Meta,BackupMeta = assert(getrawmetatable)(game),{}
  34. setreadonly(Meta, false)
  35.  
  36. for Index,Value in next,Meta do BackupMeta[Index] = Value end
  37.  
  38. Meta.__namecall = function(Instance, ...)
  39. local Function = ({...})[select('#', ...)]
  40. local PackedArguments = {...}
  41. local Argument = {}
  42. for Index = 1, #PackedArguments - 1 do
  43. Argument[Index] = PackedArguments[Index]
  44. end
  45. if Function == "FireServer" or Function == "Fire" or Function == "InvokeServer" or Function == "Invoke" then
  46. warn(Function .. " was called.\nPath: " .. Instance:GetFullName() .. "\nArguments: " .. tostring(unpack(Argument)))
  47. return BackupMeta.__namecall(Instance, ...)
  48. end
  49. return BackupMeta.__namecall(Instance, ...)
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement