I made a script for "If you award a badge you will get + "100" Cash or money what you leaderboard says' Here is the script i hope you can help me :)
local BadgeID = 181292972 -- Badge ID
game.Players.PlayerAdded:connect(function(p)
local stats = Instance.new("IntValue", p)
stats.Name = "leaderstats"
local money = Instance.new("IntValue", stats)
money.Name = "Candy" -- Loaderboard stats
money.Value = 0
while true do
wait() local b = game:GetService("BadgeService")
b:AwardBadge (p.userId, script.BadgeID.Value)
money.Value = money.Value + 100 --How much
end

1 comment
look my new answer thanks