Advertisement
XxMarioEspinal749xX

Untitled

Aug 9th, 2022 (edited)
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. local BlockedRemotes = {
  2. "orbEvent",
  3. }
  4.  
  5. local Events = {
  6. Fire = true,
  7. Invoke = true,
  8. FireServer = true,
  9. InvokeServer = true,
  10. }
  11.  
  12. local gameMeta = getrawmetatable(game)
  13. local psuedoEnv = {
  14. ["__index"] = gameMeta.__index,
  15. ["__namecall"] = gameMeta.__namecall;
  16. }
  17. setreadonly(gameMeta, false)
  18. gameMeta.__index, gameMeta.__namecall = newcclosure(function(self, index, ...)
  19. if Events[index] then
  20. for i,v in pairs(BlockedRemotes) do
  21. if v == self.Name and not checkcaller() then return nil end
  22. end
  23. end
  24. return psuedoEnv.__index(self, index, ...)
  25. end)
  26. setreadonly(gameMeta, true)
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement