Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[SOLVED] How could I check if a player owns a gamepass?

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

0

It works for me.

0

as your question is solved can you tell me how?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.