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

How to make user own gamepass to select a team?

I have a working Team Selection UI, but I'm not sure how I would make it not allow you select a team if you don't have the gamepass for it. Any help? Thanks!

1 comment

0

Use If then statements. If the player owns the gamepass then change their team.

1 answer

you can use UserOwnsGamePassAsync in your script. it would look something like this

local MPS = game:GetService("MarketplaceService")
	if MPS:UserOwnsGamePassAsync(userID,gamepassID) then
	
	end

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