How to make a welcome badge

Hey devs, today I am teaching you how to make a welcome badge.

Before anything...

Please make sure to create your badge and copy its ID!. Sometimes welcome badges can be annoying, so please make sure to wisely choose if you're gonna make one or not.

How to create a badge?

Since Roblox made its new Creator Dashboard, it is now harder to simply upload a badge.
  1. Go to the Creations tab of the dashboard.
  2. Click on the game you want to make the badge on.
  3. Scroll down to the Engagement section of the bar on the left.
  4. Click Badges.
  5. Click the blue create a badge button. If you created more than 5 badges, you have to pay 100 Robux.
  6. Upload badge image
  7. Change title and description. (Description is optional)
  8. Click Create Badge.
  9. Click on your badge icon and copy its asset ID from the URL.

Scripting

1. Hop into your game in Studio. 2. Insert a Script into ServerScriptService.

Now, we need to call BadgeService, which awards players badges.

local BS = game:GetService("BadgeService")

We need to check for when a player joins, and know who it is.

local BS = game:GetService("BadgeService")

game.Players.PlayerAdded:Connect(function(player)
	
end)

Before we award the player the badge, we first need to know if they have already gotten it.

local BS = game:GetService("BadgeService")

game.Players.PlayerAdded:Connect(function(player)
	if not BS:UserHasBadgeAsync(player.UserId, 2592775407976423) then --replace with your badge id..
		
	end
end)

Now, we need to award the player the badge.

local BS = game:GetService("BadgeService")

game.Players.PlayerAdded:Connect(function(player)
	if not BS:UserHasBadgeAsync(player.UserId, 2592775407976423) then
		BS:AwardBadge(player.UserId, 2592775407976423)
	end
end)

Link to the script? Click here!

10 Likes