I am working on a finishing move when the npc is lower than 50 health the player is able to "Finish the Npc" and the npc get killed by the player, but while thats happening the player is doing animation where he kills the npc then the npc plays their own animation were they die due to it something like this: https://www.youtube.com/watch?v=TZZqstS8HH8 this is one script that is server sided script:

local ProximityPrompt = script.Parent
local Zombie = script.Parent.Parent
local Humanoid = Zombie:WaitForChild("Humanoid")
ProximityPrompt.Enabled = false

repeat
wait()
until Zombie.Humanoid.Health <= 50 
ProximityPrompt.Enabled = true

ProximityPrompt.Triggered:Connect(function()
if ProximityPrompt.ActionText == "Finisher" then
	game.Workspace.Zombie.Humanoid.Health = 0
	game.Workspace.Zombie.ProximityPrompt.Blood.Rate = 10000
	game.Workspace.Zombie.ProximityPrompt.Slap:Play()
	wait(0.8)
	game.Workspace.Zombie.ProximityPrompt.Blood.Rate = 0
	end
end)

repeat
wait()
until Zombie.Humanoid.Health == 0 
ProximityPrompt.Enabled = false