Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local badgeService = game:GetService("BadgeService")
- local badgeID = 2124542294
- game:GetService("Players").PlayerAdded:Connect(function(player)
- player.leaderstats.Wins.Changed:Connect(function()
- print("Trying")
- if player.leaderstats.Wins.Value >= 5 then
- print("Sucess X5 WINS")
- if badgeService:GetBadgeInfoAsync(badgeID).IsEnabled == true then
- badgeService:AwardBadge(player.UserId, badgeID)
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement