Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
FCPDLawz -51
6 years ago
Edited 6 years ago

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.

Closed as Non-Descriptive by hiimgoodpack and Goulstem

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
oSyM8V3N 429 Moderation Voter
6 years ago
Edited 6 years ago

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.

1
userId is deprecated hiimgoodpack 2009 — 6y
0
I heard it was. Don't really know another way to do so oSyM8V3N 429 — 6y
1
Use .UserId hiimgoodpack 2009 — 6y
0
Oh mk. Thanks oSyM8V3N 429 — 6y
Ad