Advertisement
xxdanielit4

Untitled

Feb 26th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ocal gm = getrawmetatable(game)
  2. local sro = setreadonly or make_writeable or fullaccess
  3. sro(gm, false)
  4. local old = gm.__namecall
  5. local newcclosure = newcclosure or function(f) return f end
  6. gm.__namecall = newcclosure(function(self, ...)
  7. local args = {...}
  8. if args[#args] == "FireServer" and self.Name == "MonsterAttack" or (args[#args] == "FireServer" and self.Name == "MonsterTarget") then
  9. return false
  10. end
  11. return old(self, ...)
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement