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

is not of type Game Pass? Please use MarketplaceService:PlayerOwnsAsset instead.

Asked by 3 years ago

PassId = 11534908 --Change the ID to the ID of the gamepass. game:GetService("Players").PlayerAdded:connect(function(Player) if game:GetService("GamePassService"):PlayerHasPass(Player, PassId) then Player:WaitForChild("leaderstats"):WaitForChild("Money").Value = 40000 -- Change the 0 to the amount of money that you want end end) GamePassId '11534908' is not of type Game Pass. Please use MarketplaceService:PlayerOwnsAsset instead.

1 answer

Log in to vote
0
Answered by 3 years ago

This means that the id you are using is not a gamepass. Make sure to check again to see whether you are using the right id, or maybe left out a number or something. If you are trying to sell a developer product, you have to use a totally different method. Because with your script, it is basically saying, if you have this gamepass, then you get 40000 every time you join

Anyways, hope this has been of help to you, if it has, please accept this answer :)

Ad

Answer this question