Hello! Does anyone know why the below script only works some of the time? Unless it's the first player to join the server, in which case it seems to always work, otherwise it only works like 1/4 of the time it seems.
local mps = game:GetService("MarketplaceService")
local gamepass = #######
game.Players.PlayerAdded:Connect(function(player)
if mps:UserOwnsGamePassAsync(player.UserId, gamepass) then
player.PlayerGui.RegularGui.Open.Visible=false --hides regular gui
script.VIPGui:Clone().Parent = player.PlayerGui --clones script child vipgui into players gui
end
end)

2 comments
This was it thank you
no problem