How do I make a badge so if you have it you get a tool in game?

Hello, I am a new to scripting and I have game that I have starting to work on with scripting and I was wondering how I could get a badge to give you a tool if you have it.

I have tried many other methods but found nothing I even went on YouTube but nobody has done a video on this. If anyone could help me or link me with a script I would apricate it a lot.

Hello, I would recommend taking a look at BadgeService, mainly UserHasBadgeAsync.