Answers for "roblox see if player has gamepass"

10

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)
Posted by: Guest on July-29-2020
0

roblox see if player has gamepass

game.Players.PlayerAdded:Connect(function(player)
	print("A player has entered: " .. player.Name)
end)
Posted by: Guest on January-13-2021

Browse Popular Code Answers by Language