Im trying to do this script where when you kill someone, you get cash, im trying to do it without making a new folder, but its not working, can someone help me.
game.Players.PlayerAdded:connect(function(player) local folder = "leaderstats" local currency1 = "Cash"
player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() local tag = character.Humanoid:FindFirstChild("creator") if tag ~= nil then if tag.Value ~= nil then currency1.Value = currency1.Value + 10 --This is the reward after the player died. end end end) end) end)

1 comment
wait 5 mins Ill answer