DataStore Saving

Okay Thanks, Everyone here for helping out so far. So right now I want to be able to add my kill player for money script, but I tried everything I can think of, and I can not replace it. I tried deleting the leaderstats and using my kill player for money script and this causes the whole leaderstats to break. I tried replacing an on player died function in place of the click detector workspace Chicken o function but it won’t work. Can anyone help me solve this?

Summary: Using the DataStore2 Script Above to add a kill player for money script to save the gold.
Thanks!