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

my script that makes gui go away when you buy the game pass is not working local script?

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
I didn't find any mistake and I'm not really good at scripting, just try to make a remote event and fire it onclient AltairCelestia 47 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

There is no real problem, but the script requires you to rejoin after purchasing the gamepass.

Ad

Answer this question