Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ocal gm = getrawmetatable(game)
- local sro = setreadonly or make_writeable or fullaccess
- sro(gm, false)
- local old = gm.__namecall
- local newcclosure = newcclosure or function(f) return f end
- gm.__namecall = newcclosure(function(self, ...)
- local args = {...}
- if args[#args] == "FireServer" and self.Name == "MonsterAttack" or (args[#args] == "FireServer" and self.Name == "MonsterTarget") then
- return false
- end
- return old(self, ...)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement