I want to make every player with the gamepass "No Advertisements" to stop seeing the AdPanel Part (Not everyone, only the people with the gamepass "No advertisements") Thank you
Here is my code:
nag = true local part = script.Parent.Adpanel -- Dont change this, Thank you! local player = game.Players.LocalPlayer -- Please dont change this, Thank you! if nag == true then game.Players.PlayerAdded:connect(function(player) if game:GetService("GamePassService"):PlayerHasPass(player, id) then --What do i do Here? else print("A New Player has joined and he/she does not have the anti ads gamepass") end end) else print("NAG has been Disabled, to enable it, go to the NAG Settings and set the nag option to true (It is True by default)") end
Hello,
What you can do is just enable filtering enabled (go to Workspace and tick the FilteringEnabled box) and then just use part:Remove() it is going to remove it locally.
For more information visit the wiki.
~Frag