Hi, i was wondering if someone could help me with a Script that awards a badge when the player has achieved the required amount of cash. All scripts i can find seem to be outdated and do not work. This is the script i use which doesnt work
local BadgeID = 2124473380 --Badge ID Here local Cash = "Cash" --Change Money To The Stat local HowMuch = 100000000 --Change To How Much They Need To Have game.Players.PlayerAdded:connect(function(p) repeat wait() until p:findFirstChild("leaderstats") ~= nil p.leaderstats[Cash].Changed:connect(function() if p.leaderstats[Cash].Value <= HowMuch - 1 then return end game:GetService("BadgeService"):AwardBadge(p.userId, BadgeID) end) end)
value.Changed:Connect(function(new) if new >= REQUIREMENT then REWARDSCRIPT end end)