Bug with Kill System (related to Bug with Killstreak System)

Continuing the discussion from Bug with Killstreak System: Bug with Kill System (related to Bug with Killstreak System)

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Fixing the Kill System

  2. What is the issue? Bug persists where players can’t gain kills

  3. What solutions have you tried so far? Adding a task.wait() to the beginning of my script

Extra: This occurs mainly within the players/dummies, not a separate script in ServerScriptService or Workspace. This is from the same script as “Bug with Killstreak System” because I couldn’t fix the kill gains either.

The code of my Kill system (same from Killstreak system, minus the kill messages, ragdoll, and death sounds):

local char = script.Parent
local player = game.Players:GetPlayerFromCharacter(char)
char.Humanoid.BreakJointsOnDeath = false

task.wait()

char:FindFirstChildWhichIsA('Humanoid').Died:Connect(function()
	local charWhoTagged = game.Workspace:FindFirstChild(char.Stats.TaggedByName.Value)
	if charWhoTagged then
		if game.Players:GetPlayerFromCharacter(charWhoTagged) then
			local playerWhoTagged = game.Players:GetPlayerFromCharacter(charWhoTagged)
			playerWhoTagged.leaderstats.Eliminations.Value += 1
			if charWhoTagged.Stats.KillStreak.Value == 10 then
				game.BadgeService:AwardBadge(playerWhoTagged.UserId, 1483874774032918)
			end
			if charWhoTagged.Stats.KillStreak.Value == 50 then
				game.BadgeService:AwardBadge(playerWhoTagged.UserId, 15164141694387)
			end
		end
	end
end)

Your code doesnt have a variable called charWhoTagged

Well it’s there, I just didn’t include it in the code block for some reason. Editing

There you go. Should be there now.

With the help of Ometa (owner of tool annihilation), he has discovered why this issue is occurring. This post is now obsolete.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.