Advertisement
bennytrt2

oil warfare tycoon script pt.1

May 14th, 2022
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local OldNamecall2
  2. OldNamecall2 = hookmetamethod(game, "__namecall", function(self, ...)
  3. local args = {...}
  4. local method = getnamecallmethod()
  5.  
  6. if tostring(self) == "Fdmg" and method == "FireServer" then
  7. args[1] = 0
  8. return self.FireServer(self, unpack(args))
  9. end
  10. return OldNamecall2(self, ...)
  11. end)
  12.  
  13. local OldNamecall1
  14. OldNamecall1 = hookmetamethod(game, "__namecall", function(self, ...)
  15. local args = {...}
  16. local method = getnamecallmethod()
  17.  
  18. if tostring(self) == "Freefall" and method == "FireServer" then
  19. args[1] = false
  20. return self.FireServer(self, unpack(args))
  21. end
  22. return OldNamecall1(self, ...)
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement