How to give a badge

Here is a script I made for this. Put this script in the starter player scripts. Put your tool/gear in the server storage(this is a server script)

local plr = script.Parent.Parent

local badgeId = 000000
local badgeSerivce = game:GetService("BadgeService")

local gear = game:GetService("ServerStorage"):WaitForChild("ClassicSword")

if plr then
	if badgeSerivce:UserHasBadgeAsync(plr.UserId, badgeId) then
		local gearNew = gear:Clone()
		gearNew.Parent = plr.Backpack
		script:Destroy()
	end
end
4 Likes