Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

can someone help me with my gamepass script? i am using a numbervalue as the value it goes into [closed]

Asked by 5 years ago
local devidl = 5815497
game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(player,gamepassid,ispurchased)
    if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userId,devidl) == true then
        if ispurchased == true then
            if gamepassid == devidl then
               script.Parent.Value = "INF"
    end
        end
    end
end)

game.Players.PlayerAdded:connect(function(player)
    if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.userId,devidl) == true then
       script.Parent.Value = "INF"
    end
end)
0
This question is WAY too broad. User#24403 69 — 5y

Closed as Non-Descriptive by User#24403 and xPolarium

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?