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.
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 :)