How to fix (string expected, got Instance)


(string expected, got Instance)

We can’t help you without the code.

local Hitbox = script.Hitbox:Clone()
	Hitbox.Parent = game.Workspace
	Hitbox.CFrame = char.PrimaryPart.CFrame *,0,Hitbox.Size.Z/2 * -1)
	local Connection 
	Connection = Hitbox.Touched:Connect(function(hitpart)	
		if not hitpart:IsDescendantOf(char) then
			if hitpart.Parent:FindFirstChild("Humanoid") then
				local enemy = hitpart.Parent
				if (table.find(ignorelist,enemy) == nil) then
					char.Humanoid.WalkSpeed = 0
					char.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
					Player.Backpack.Value.UsingMove.Value = true
					enemy.Humanoid.WalkSpeed = 0
					enemy.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
	--				enemy.Humanoid:LoadAnimation(hitanim):Play()
					local UsingMoves ="BoolValue")
					UsingMoves.Name = UsingMoves
					UsingMoves.Parent = enemy

Maybe show us line 36? That’s the error.

You forgot to set UsingMoves under paragraphs in line 36

UsingMoves.Name = “UsingMoves”

Would be correct.