Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

how to make a welcome badge roblox lua

local badgeID = YourbadgeID
local badgeService = game:GetService("BadgeService")
 
game.Players.PlayerAdded:Connect(function(player)
 wait(1)
 if not badgeService:UserHasBadge(player.UserId, badgeID) then
  badgeService:AwardBadge(player.UserId, badgeID)
 end
end)
 
PREVIOUS NEXT
Tagged: #badge #roblox #lua
ADD COMMENT
Topic
Name
4+7 =