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

Help with a game pass script?

Asked by 10 years ago

I want to make a script where, when a certain player buys a game pass, they will receive a certain hat and 30 walkspeed. And that they will keep it upon death. How would I go about doing this? I know I have to use MarketService and AssetID, but I have no idea on how to use them for this purpose. So, I'm sorry if this is requesting.

1 answer

Log in to vote
0
Answered by
Vathriel 510 Moderation Voter
10 years ago

Do some research on the wiki, find out how to check for game passes. After that you can do something similar to this:

game.Players.PlayerAdded:connect(functoin(p)
    p.CharacterAdded:connect(function(c)
        if pass then
            --Gives hat
            --Gives walkspeed
        else
            return
        end
    end)
end)
Ad

Answer this question