Causmic

World of Magic [God Mode]

Apr 25th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local mt = getrawmetatable(game)
  2. setreadonly(mt, false)
  3. local old = mt.__namecall
  4. lplr = game:GetService("Players").LocalPlayer.Character
  5. mt.__namecall = newcclosure(function(o, ...)
  6. local remotename = tostring(o)
  7. local method = getnamecallmethod()
  8.  
  9. if method == "FireServer" or method == "InvokeServer" then
  10. if remotename == "DealWeaponDamage" or remotename == "DealAttackDamage" then
  11. packed = {...}
  12. if packed[2] == lplr then
  13.  
  14. packed[2] = nil
  15.  
  16. return old(o, unpack(packed))
  17.  
  18. end
  19. end
  20. end
  21.  
  22. return old(o, ...)
  23.  
  24. end)
Add Comment
Please, Sign In to add comment