local BadgeId = 1234
local ValueLocation = game.Workspace.Success.Value
local ValueAmount = 1
print(script.Name .." Loaded.")
while ValueLocation == ValueAmount do
print("Value correct.")
local BadgeService = game:GetService("BadgeService")
game:GetService("Players").PlayerAdded:Connect(function(player)
local function awardBadge(player, badgeId)
if BadgeService:GetBadgeInfoAsync(BadgeId).IsEnabled == true then
BadgeService:AwardBadge(player.UserId, badgeId)
end
end
end)
wait(5)
end
Ive tried a lot of things and nothing has worked, i hope someone can help. Thanks.

2 comments
Hi Thank you. It works :)
No problem!