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
Hello, CarlPIandog!
I changed the part where you test if player owns a asset to if player owns a gamepass
-- 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"):UserOwnsGamePassAsync(player.UserId, 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
Hope this helps!
Good Luck with you games