I need some help on making these scripts make their Parents visible (I have FilteringEnabled On) This,
--LocalScript, Badge script (Supposed to make it's parent visible if player has the badge)
local BadgeService = game:GetService("BadgeService")
local BadgeId = 753788867
game:GetService("Players").PlayerAdded:connect(function(player)
if BadgeService:UserHasBadge(player.UserId, BadgeId) then
game.Players.LocalPlayer.PlayerGui.PCgui.Inventory.Achieve.Show.Welcome.Visible = true
else
print("The user does not have this badge")
end
end)
And this
--LocalScript, Gamepass script (Supposed to make it's parent visible if player has the pass)
local id = 828677881
game.Players.PlayerAdded:connect(function(player)
if Game:GetService("GamePassService"):PlayerHasPass(player, id) then
game.Players.LocalPlayer.PlayerGui.PCgui.Inventory.Inventory.Show.Pass.Bike.Visible = true
else
print(player.Name .. " doesn't have the game pass...")
end
end)

1 comment
Also ensure that these are localscripts as GUIs are on the client side of fe so therefore they need to be localscripts to work