pcall(function()
game.Players.PlayerAdded:connect(function(player)
if game.MarketplaceService:UserOwnsGamePassAsync(player, 8511832) then
repeat wait() until game.ServerStorage.PlayerMoney
local cashmoney = game.ServerStorage.PlayerMoney:WaitForChild(player.Name)
cashmoney.Value = cashmoney.Value + 999999999
end
end)
end)
I don't know why this isn't working. I've tested both 'UserOwnsGamepassAsync' and 'PlayerHasPass' but nothing happens.

2 comments
How do I add the first argument as you said?
Player.UserId