Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- marketplaceService = game:GetService('MarketplaceService')
- gameMeta = getrawmetatable(game)
- setreadonly(gameMeta, false)
- old__index, old__namecall = gameMeta.__index, gameMeta.__namecall
- gameMeta.__namecall = newcclosure(function(self, ...)
- local namecallMethod = getnamecallmethod()
- local passedArguments = {...}
- if self == marketplaceService then
- if namecallMethod == "PlayerOwnsAsset" or namecallMethod == "UserOwnsGamePassAsync" or namecallMethod == "PlayerCanMakePurchases" then
- return true
- elseif namecallMethod == "ProccessReceipt" then
- return Enum.ProductPurchaseDecision.PurchaseGranted
- end
- end
- return old__namecall(self, unpack(passedArguments))
- end)
Add Comment
Please, Sign In to add comment