I'm trying to make a script where it shows you if you have the gamepass or not, but it simply isn't working or anything. Yes I do have the gamepass obviously.
-- Gamepasses Script
-- Written by CarlPIandog
-- // Extra Freight Gamepass \\
local passId = 4657110 -- change this to your game pass ID.
function isAuthenticated(player) -- checks to see if the player owns your pass
return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, passId)
end
game.Players.PlayerAdded:connect(function(plr)
if isAuthenticated(plr) then
script.Parent.ExtraFreight.Visible = true
end
end)
-- // Gamepass \\
-- Copy and paste rest above

2 comments
use https://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/UserOwnsGamePassAsync
Lol how