In the script when I run it in the output it says
- leaderstats is not a valid member of Player
- Script 'Workspace.Kills Badge Script', Line 6 This scripts awards you a badge when you recieve 1000 kills, but it's not working.
Currency = "Kills" -- Copy this script and change the new one into Whatever your game is
BadgeID = 235167703 -- Change that to the badge's ID
while true do
wait()
for i,v in pairs(game.Players:getPlayers()) do
if v.leaderstats[Currency].Value > 1000 then --Change this to whatever your value is
ser = game:getService("BadgeService")
ser:AwardBadge(v.UserId,BadgeID)
end
end
end

5 comments
Workspace.Kills Badge Script:10: unfinished string near ''AwardBadge(plr.userId, badge is)'
Line 10 should be game:GetService('BadgeService'):AwardBadge(plr.userId, badgeId)
Also, line 6 should wait for leaderstats, not leader stats.
Thanks!
sorry, blame phone autocorrect.