OnInstanceAddedSignal error

I have a portion of code that runs on the OnInstanceAddedSignal, however, it has a problem where despite the tag only being added once, it fires multiple times all at once.
Is this a common issue/error, and how can I solve this effeciently?

1 Like

can you show the code, you didnt give enough information

This is for a parry based function. The character is the one that parried, and the parental player is the one getting parried.

The parrier only gets hit once, so it’s unlikely that it is that… I think.


					character:FindFirstChild("Dishonored blade").TheWayOfTheNavae.Event:fire(2)
					if character:HasTag("Amogus") then 
						CollectionService:RemoveTag(character, "Amogus")
					end
				end
				Gethit:FireAllClients(character:FindFirstChildOfClass("Part").CFrame, 2)
				CollectionService:AddTag(parentalplayer.Character, "Amogus", "BlockStun")
				print("geez luiseeeeee") --this prints only once.
				task.delay(1 + 0.10,function()
					CollectionService:RemoveTag(parentalplayer.Character, "Amogus")
				end)
				CollectionService:AddTag(parentalplayer.Character, "BlockStun")
				task.delay(3 - 2.10,function()
					CollectionService:RemoveTag(parentalplayer.Character, "BlockStun")
				end)
				parentalplayer.Character:FindFirstChild("BlockingStun?").Value = 0.5
				parentalplayer.Character:FindFirstChild("AttackStun?").Value = 0.10
				remoteEvent:FireClient(parentalplayer)
				parentalplayer.Character:FindFirstChild("Dishonored blade").TheWayOfTheNavae.Event:fire(1)
					for i = 1, 10 do
						hittingParry.OutlineTransparency += 0.05
						wait(0.03)
					end
				return
			end

local function OnInstanceAddedSignal(child, Tag)
	if child:IsA("Animation") then
		table.insert(Animations, child)
	end
	if child == Character then
		print("DUEBAOSNHFKISDJKASFLASDFJLLASLASDLASDNLSJMJDLKJASLDFKSJLKASJSLKL") --this prints a total of 4 times.
	end
end

mega:GetInstanceAddedSignal("Amogus"):Connect(OnInstanceAddedSignal)

The most glaring issue so far is that despite the tag being added to the character once, and only once, it prints ““DUEBAOSNHFKISDJKASFLASDFJLLASLASDLASDNLSJMJDLKJASLDFKSJLKASJSLKL”” a total of 4 times.