Hi I am trying to make this script compatible with FilteringEnabled but I do not know how. I know we can't ask for requests but can someone please explain to me what I need to do because the Roblox Wiki on Remote Events is confusing to me.
local plr = game.Players.LocalPlayer;
local button = script.Parent;
local market = game:GetService("GamePassService");
local id = 12345678; --I am using this because I haven't made the gamepass yet
button.Visible = market:PlayerHasPass(plr,id);

3 comments
It won't work if the gamepass is for another game.
I made my own gamepass with id 1315813144 but I am not seeing the button.
Is it in a server script?