Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local BlockedRemotes = {
- "orbEvent",
- }
- local Events = {
- Fire = true,
- Invoke = true,
- FireServer = true,
- InvokeServer = true,
- }
- local gameMeta = getrawmetatable(game)
- local psuedoEnv = {
- ["__index"] = gameMeta.__index,
- ["__namecall"] = gameMeta.__namecall;
- }
- setreadonly(gameMeta, false)
- gameMeta.__index, gameMeta.__namecall = newcclosure(function(self, index, ...)
- if Events[index] then
- for i,v in pairs(BlockedRemotes) do
- if v == self.Name and not checkcaller() then return nil end
- end
- end
- return psuedoEnv.__index(self, index, ...)
- end)
- setreadonly(gameMeta, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement