Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --BROUGHT TO YOU BY ANONMODS.COM--
- local old
- old = hookmetamethod(game,"__namecall",function(self,...)
- local method = getnamecallmethod()
- if method:lower() == "invokeserver" and not checkcaller() then
- local args = {...}
- if (tostring(self) == "TakeDamageFunc") then
- args[1].Blunt = 1e+99
- return old(self,unpack(args))
- elseif (tostring(self) == "ChangeToolDurability") then
- return 100
- elseif tostring(self) == "RequestUnbuildPart" then
- args[2].Environment = 500
- return old(self,unpack(args))
- end
- end
- return old(self,...)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement