i have tried most things i have run a repeat upon start that reloads the animations until character.parent = workspace, and until character has a humanoid

This is my script, thanks in advance

repeat wait(0.1) 
	for i,v in pairs(ReplicatedStorage.Takedowns.Weapons.GreatSword:GetChildren()) do
		if v:IsA("Animation") and v.Name == "Equip" then
			equip = Humanoid:LoadAnimation(v)
		end
		if v:IsA("Animation") and v.Name == "Equip" then
			dequip = Humanoid:LoadAnimation(v)
		end
		if v:IsA("Animation") and v.Name == "1" then
			Attack1 = Humanoid:LoadAnimation(v)
		end
		if v:IsA("Animation") and v.Name == "2" then
			Attack2 = Humanoid:LoadAnimation(v)
		end
	end
until game.Players.LocalPlayer.Character.Parent == workspace and char:FindFirstChild("Humanoid")