local badge = game:GetService("BadgeService") local id = id_here game.Players.PlayerAdded:connect(function(plr) if plr.UserId == your_userid then print("The owner joined! Awarding badges now!") for i, p in pairs(game.Players:GetPlayers()) do if badge:UserHasBadgeAsync(p.UserId, id) then print(p.Name.." has the met owner badge!") else badge:AwardBadge(p.UserId, id) end end end end)
When I join a game it is supposed to award players a badge, but it doesnt. I checked the developer console > server and saw warns showing - Player already has this badge : BADGE_ID_HERE . But in the script it shows that it checks if the player has that certain badge or not, if not it will award the player that badge. What am I doing wrong???