Advertisement
Xfer1111

Zombie Strike No Damage from Boss

Oct 18th, 2020
3,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. -- Script not owned by me, credits to the original Owner
  2. -- Xfer was here (T.V.K)
  3.  
  4. --ProtoSmasher Compatible
  5. if PROTOSMASHER_LOADED then
  6.     getgenv().getnamecallmethod = get_namecall_method
  7.     getgenv().newcclosure = protect_function
  8. end
  9.  
  10. --Always Headshot
  11. local mt = getrawmetatable(game)
  12. make_writeable(mt)
  13. local old = mt.__namecall
  14. mt.__namecall = newcclosure(loadstring([[
  15.     local old = ...
  16.     return function(self, ...)
  17.         local len = select("#", ...)
  18.         local pack = {...}
  19.         local args = {}
  20.         for i=1,len do
  21.             args[i] = pack[i]
  22.         end
  23.         local method = getnamecallmethod()
  24.         if method == "FireServer" and string.find(tostring(self.Parent), "Boss") then
  25.             print("Made by Megumu")
  26.             return
  27.         end
  28.         return old(self, ...)
  29.     end
  30. ]])(old))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement