local badgeService = game:GetService("BadgeService")
local badgeId = YOUR_BADGE_ID -- Замените YOUR_BADGE_ID на ID вашего бейджа
local function onTouched(part)
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if player then
if not badgeService:UserHasBadge(player.UserId, badgeId) then
badgeService:AwardBadge(player.UserId, badgeId)
print("Бейдж выдан игроку: " .. player.Name)
end
end
end
script.Parent.Touched:Connect(onTouched)