Whenever someone kills another player their "Bounty" goes up by one. But instead of doing that, the bounty doesn't change?! The Gem value and Kill value change though..!? I'm not getting any errors or anything, do you guys know what the fix would be?
Serverscript
game.Players.PlayerAdded:Connect(function(plr)
MC = plr:WaitForChild("MainCurrency")
local Bounty = MC:FindFirstChild("Bounty")
LS = plr:WaitForChild("leaderstats")
local Deaths = LS:FindFirstChild("Deaths")
local Kills = LS:FindFirstChild("Kills")
plr.CharacterAdded:connect(function(char) -- Kill Mechs
local humanoid
repeat
humanoid = char:FindFirstChild("Humanoid")
wait()
until humanoid
humanoid.Died:connect(function()
local tag = humanoid:FindFirstChild("creator")
if tag and MC and LS then
local killer = tag.Value
if killer then
Deaths.Value = Deaths.Value + 1
local KMC = killer:FindFirstChild("MainCurrency")
local Bounty = KMC:FindFirstChild("Bounty")
if killer.MainCurrency.Bounty.Value < 100 then
killer.MainCurrency.Bounty.Value = killer.MainCurrency.Bounty.Value + 1
killer.leaderstats.Kills.Value = killer.leaderstats.Kills.Value
Bounty.Value = Bounty.Value - Bounty.Value
killer.MainCurrency.Gems.Value = killer.MainCurrency.Gems.Value + 1
end
end
end
end)
end)
end)

5 comments
Kills Value Won't Change Either**
Bounty.Value = Bounty.Value - Bounty.Value thats like saying 0 = 0 - 0
Which part won't update? The leaderstats or the values inside the player?
The value inside the player
just remove line 45