Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Badges not being awarded to players when they enter how do i fix this?

my badges arnt being awarded like my you visited badges how do i fix this?

its the roblox badge that you get when creating a badge.

1 answer

Next time please show us an example so we can further assist you, but i wrote a easy script that should allow player's to get a specific badge when joined :

local badgeID = 000000000 -- replace the 0's with your badge's ID
local badgeService = game:GetService("BadgeService") -- Calls for the game's BadgeService
function onEntered(player)
	wait(1)
	badgeService:AwardBadge(player.UserId, badgeID)
end
game.Players.PlayerAdded:connect(onEntered) -- When a player is added to the game, it awards the player the badge, if not had already.

4 comments

1

userId is deprecated

0

I heard it was. Don't really know another way to do so

1

Use .UserId

0

Oh mk. Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.