Why does this happend when my jumpscare plays? part 2

Hi! So, I Was Making A Horror Game But My Jumpscare [ONDEATH] Bugs Out. So I Did The Animation And The Coding correctly. But The Character Just Moves Spots. Example: - YouTube
Heres The [LOCAL SCRIPT] Code:

local u1 = nil;
function Death()
	local function v1(p1, p2, p3, p4, p5)
		workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable;
		workspace.CurrentCamera.CFrame = p1.CFrame;
		game:GetService("TweenService"):Create(workspace.CurrentCamera, TweenInfo.new(p3, p4, p5), {
			CFrame = p2.CFrame
		}):Play();
		wait(p3);
	end;
	if workspace:FindFirstChild("VistualInstances") then
		if workspace:WaitForChild("VistualInstances"):FindFirstChild("JumpScare") then
			local l__JumpScare__2 = workspace:WaitForChild("VistualInstances"):WaitForChild("JumpScare");
			local v3 = Instance.new("Animation");
			v3.AnimationId = "rbxassetid://8666250394";
			workspace:WaitForChild("VistualInstances"):WaitForChild("JumpScare"):WaitForChild("AI"):WaitForChild("Humanoid"):LoadAnimation(v3):Play();
			game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false);
			game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false);
			script:WaitForChild("Sound"):Play();
			local v4 = 0 - 1;
			while true do
				v1(l__JumpScare__2.Point1, l__JumpScare__2.Point2, 0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out);
				v1(l__JumpScare__2.Point2, l__JumpScare__2.Point1, 0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out);
				if 0 <= 1 then
					if v4 < 9 then

					else
						break;
					end;
				elseif 9 < v4 then

				else
					break;
				end;
				v4 = v4 + 1;            
			end;
			script:WaitForChild("Sound"):Stop();
			game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true);
			game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true);
			v3:Destroy();
		end;
	end;
	workspace.CurrentCamera.CameraType = Enum.CameraType.Custom;
	if u1 then
		u1:Disconnect();
	end;
end;
game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(p6)
	u1 = p6:WaitForChild("Humanoid").Died:Connect(Death);
	workspace.CurrentCamera.CameraSubject = p6:WaitForChild("Humanoid")
end);

while true do
	wait();
	if game:GetService("Players").LocalPlayer.Character then
		break;
	end;
end;
if not u1 then
	u1 = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid").Died:Connect(Death);
end;