Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

my script is not working when you buy a gamepass the gui is meant to go away?

Asked by 2 years ago

local Players = game:GetService("Players") local MarketPlaceService = game:GetService("MarketplaceService") local GamepassId = 93841494 local Frame = script.Parent

Players.PlayerAdded:Connect(function(Player) if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId, GamepassId) then Player.PlayerGui.ScreenGui.Frame.Visible = false end end)

0
Any output errors? Try testing whether the code even runs with print() and warn() MarkoFANTASTINE1 15 — 2y

Answer this question