Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

1 comment

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

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.