I have a knife script and I want it so if a certain animation is playing, it won't swipe. But, since the certain animation is played on the client, the server knife script cannot detect the animation because it's played on the client.

Currently I have this on the knife script

local AnimationTracks = hum:GetPlayingAnimationTracks()
for i,track in pairs(AnimationTracks) do
	if string.find(track.Name, "EmoteAnim") then
		print("found anim gonna cancel swipe")
		return
	end
end