I was making a gamepass for my game and I have litteraly no idea how to sence it. I already have the shop and everything I am just wanting to know how to make it work.
https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/UserOwnsGamePassAsync
if game:GetService'MarketplaceService':UserOwnsGamePassAsync(UserId, gamepassId) then print'player has gamepass' end
if that does not work try this
game.Players.PlayerAdded:Connect(function(player) local GamepassID = 17441333 local start1 = Instance.new("BoolValue") start1.Name = "start1" start1.Parent = player start1.Value = false if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,GamepassID) then start1.Value = true end end)