how do you make a script only activate after purchasing a developer product?
COMMUNITY QUESTION
how do you make a script only activate after purchasing a developer product?
1 answer
you have to check if the player has the game pass
local id = -- your gamepass id here
local marketService = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(user)
if marketService:UserOwnsGamepassAsync(user.UserId, id) then
-- put whatever you want to happen here
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
i mean developer product not gamepass))
but still thanks:)