0% found this document useful (0 votes)
198 views1 page

Badge Awarder Script for Roblox

This document describes a badge awarder script created by GuyAwesomest, last updated on July 7, 2020. It includes logs of updates, instructions for setting the Badge ID, and error handling to prevent misuse of the script. The script awards a badge to players when they join the game, provided the correct Badge ID is set.

Uploaded by

ibrahimbndr55
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
198 views1 page

Badge Awarder Script for Roblox

This document describes a badge awarder script created by GuyAwesomest, last updated on July 7, 2020. It includes logs of updates, instructions for setting the Badge ID, and error handling to prevent misuse of the script. The script awards a badge to players when they join the game, provided the correct Badge ID is set.

Uploaded by

ibrahimbndr55
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

--[[

=========================================
||-------------------------------------||
||-YOU JOINED BADGE AWARDER SCRIPT-----||
||---------------------By GuyAwesomest-||
||-------------------------------------||
=========================================

Last Updated On 2020-07-07

LOGS:
2020-07-06
- Created Script
- Added Compatibility
2020-07-07
- Added reminder in code (line 28)
- Added more debug (line 33, 36, and 37)
- Improved debug

---------------------------------------------------------------------------------

]]
warn("["..[Link].."] has loaded") -- this lets you know the script is
loaded! :)

---------------------------------------------------------------------------------

local BadgeID = 2125950512 -- change the badge ID to yours


--------
-- \/ /!\ DO NOT mess with what's below! /!\ \/

---------------------------------------------------------------------------------

[Link]:Connect(function(plr)
local DefaultNum = 2125950512 -- <-- DO NOT change this to your ID or the
script will break!
if BadgeID == DefaultNum then
error("Forgot to add badge ID (line 26)")
elseif DefaultNum == BadgeID then
error("Do not change \"DefaultNum\" to your ID (Line 33)")
elseif BadgeID == nil then
error("Badge ID doesn't exist or is nil (line 26)")
end
print("Giving BadgeID: " .. BadgeID .. " to: " .. [Link])
local b = game:GetService("BadgeService")
b:AwardBadge([Link], BadgeID)
end)

---------------------------------------------------------------------------------

You might also like