game:GetService("Players").PlayerAdded:Connect(function(player)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, 12134063) then
print("This player has the gamepass!")
GamepassOwned = true
else
print("This player doesn't have the gamepass!")
end
end)
I want to check if a player owns a gamepass for a music changer. The script I put is only the gamepass script. I'm not getting any errors but it won't work. I've been looking at other gamepass check scripts and they look the same.

2 comments
It works for me.
as your question is solved can you tell me how?