Fr213s

FREE MOBILE GAR

Jul 19th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. marketplaceService = game:GetService('MarketplaceService')
  2.  
  3. gameMeta = getrawmetatable(game)
  4. setreadonly(gameMeta, false)
  5. old__index, old__namecall = gameMeta.__index, gameMeta.__namecall
  6.  
  7. gameMeta.__namecall = newcclosure(function(self, ...)
  8. local namecallMethod = getnamecallmethod()
  9. local passedArguments = {...}
  10. if self == marketplaceService then
  11. if namecallMethod == "PlayerOwnsAsset" or namecallMethod == "UserOwnsGamePassAsync" or namecallMethod == "PlayerCanMakePurchases" then
  12. return true
  13. elseif namecallMethod == "ProccessReceipt" then
  14. return Enum.ProductPurchaseDecision.PurchaseGranted
  15. end
  16. end
  17. return old__namecall(self, unpack(passedArguments))
  18. end)
Add Comment
Please, Sign In to add comment