Alright so recently i posted a question on this site about how to make a kill for money script.Somebody fixed my script and it works! but the only problem is it doesn't work with any weapons other then the classic sword. I have tried to put the script inside the weapons and all that but it wont work. Any suggestions?
local Humanoid = script.Parent.Zombie ;
Humanoid.Died:Connect(function()
local tagValue = Humanoid:WaitForChild("creator").Value;
local leaderstats = tagValue:WaitForChild("leaderstats");
leaderstats.Cash.Value = leaderstats.Cash.Value + 7;
wait(0.1);
script:Destroy();
end);
Also I'm using free model guns if your wondering.

2 comments
Not all scripts use the same method of indicating that a person was killed by someone else.
So do I have to add a script to the weapon?