So I would like to make it so when any player joins if they have the gamepass the gui will be visible for them.
local gamepassId = 9555093
local service = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
if (service:UserOwnsGamePassAsync(player, gamepassId)) then
game.StarterGui.Skip1.TextButton.Visible = true
end
end)

3 comments
This did not work
try player:WaitForChild("PlayerGui").Skip1.TextButton.Visible = true
the gui dindt load in probaly