Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

roblox check if player has gamepass

local id = --gamepass id here

game.Players.PlayerAdded:Connect(function(player)
	if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,id) then
    	--do what you want to do in here
    end
end)
 
PREVIOUS NEXT
Tagged: #roblox #check #player #gamepass
ADD COMMENT
Topic
Name
6+3 =