How could I change this?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
I want this badge awarded when a player enters a game. Here is the default script:
01 | print ( "Badge Awarder Loaded. BadgeID: " .. script.Parent.BadgeID.Value) |
04 | if (part.Parent:FindFirstChild( "Humanoid" ) ~ = nil ) then |
05 | local p = game.Players:GetPlayerFromCharacter(part.Parent) |
07 | print ( "Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId) |
08 | local b = game:GetService( "BadgeService" ) |
09 | b:AwardBadge(p.userId, script.Parent.BadgeID.Value) |
14 | script.Parent.Touched:connect(OnTouch) |
How could I change it so that when you join the game, you automatically get the badge?