I am editing a Linked Sword, and the sword works except it does not give kills. [which is why I am editing it, I can get it to give kills but it gives way more than just 1 kill, it could even give me more provided I want to stand there stabbing a dead body]
function blow(hit)
if (hit.Parent == nil) then return end -- happens when bullet hits sword
local humanoid = hit.Parent:findFirstChild("Humanoid")
local vCharacter = Tool.Parent
local vPlayer = game.Players:playerFromCharacter(vCharacter)
local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
if humanoid~=nil and humanoid ~= hum and hum ~= nil then
-- final check, make sure sword is in-hand
local right_arm = vCharacter:FindFirstChild("Right Arm")
if (right_arm ~= nil) then
local joint = right_arm:FindFirstChild("RightGrip")
if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
tagHumanoid(humanoid, vPlayer)
humanoid:TakeDamage(damage)
local k = vPlayer.leaderstats.Kills
local bool = false
if humanoid.Died then
bool = true
if bool == true then
bool = false
k.Value = k.Value + 1

3 comments
b
Hello! I do not know the answer, but just posting here because I also had this issue, so you aren't the only one! Hope somebody can help!
any luck?