I've created a "you met the owner" badge and it works for me as I am the owner, however I would like to create another badge that is awarded for meeting another player i.e. a YouTuber. I'm not sure why my code isn't working.
local Id =2126366798
game.Players.PlayerAdded:Connect(function(Player)
if game.Players:FindFirstChild("Kawaii_Haruhi25") then
for i, players in pairs(game.Players:GetPlayers())do
game.BadgeService:AwardBadge(players.UserId, Id)
end
end
end)

2 comments
Are you 100% certain you've already tried changing the Badge ID and the Player username within the if statement to the ones you wanted?
Use GetPlayerByUserId. Usernames are subject to change.