So I want to make so it gives all player badge when the game is finished, but I cant award it. Anyone can help me?
This will teach you about awarding player badges and possibly how to use them:
Video Tutorial:
Article Tutorial:
Use BadgeService for this. Loop through all the players and award the badge to each of them.
local BadgeService = game:GetService("BadgeService")
local badgeId = 000000000
for i, player in ipairs(game.Players:GetPlayers()) do
BadgeService:AwardBadge(player.UserId, badgeId)
end
4 Likes
I would suggest looking up BadgeService in the API reference, Iām pretty sure it has the solution