I don't why this won't work. what did i do wrong? It's suppose to make the gui visible for players that have gamepass
game.player.ChildAdded:connect(function(player) if (Game:GetService("GamePassService"):PlayerHasPass(newPlayer,157704758)) then player.PlayerGui.Battlegrounds.Frame.VIP.Visible = true else player.PlayerGui.Battlegrounds.Frame.VIP.Visible = false end end)

1 comment
Code block please.