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)
local gamepassId = 9555093 local service = game:GetService("MarketplaceService") game.Players.PlayerAdded:Connect(function(player) if service:UserOwnsGamePassAsync(player, gamepassId) then player.PlayerGui.Skip1.TextButton.Visible = true end end)
Try this
You didn't use PlayerGui, only StarterGui