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.
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.
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
userId is deprecated
I heard it was. Don't really know another way to do so
Use .UserId
Oh mk. Thanks